-
-
Save Schwad/5e4b14340bf0e40a2e167a8504927706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fish | |
def Fish.flop # `Fish::flop` also works. Normal Rubyists would do `self.flop` | |
puts 'huzzah!' | |
end | |
end | |
Fish::flop | |
#=> huzzah! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment