Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class State
- module Constants
- Foo = "Foo"
- end
- end
- puts "Before: " + State::Constants::Foo
- State::Constants.class_eval do
- Foo = "Bar"
- end
- # Still prints 'Foo':
- puts "After: " + State::Constants::Foo
Add Comment
Please, Sign In to add comment