Created
August 7, 2015 15:19
-
-
Save wwboynton/d03b3450715b4ee480c5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Klass | |
def self.derp #class method | |
cats | |
end | |
def self.cats #class method | |
puts "cats are fun!" | |
end | |
def foo | |
bar | |
end | |
def bar | |
puts "It's a foobar!" | |
end | |
end | |
Klass.derp #=> cats are fun! | |
Klass.new.foo #=> It's a foobar! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment