Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module SuperCoolExampleForRenatoSilva
- class SomeRandomClass
- def self.moo
- puts "Hello, I am a cow."
- end
- end
- class SomeOtherClass
- def self.meow
- puts "Hello, I am a cat. I am standing next to a cow."
- SomeRandomClass.moo
- SuperCoolExampleForRenatoSilva::SomeRandomClass.moo
- end
- end
- end
- SuperCoolExampleForRenatoSilva::SomeRandomClass.moo
- SuperCoolExampleForRenatoSilva::SomeOtherClass.meow
- SomeRandomClass.moo # error!
Add Comment
Please, Sign In to add comment