Created
April 3, 2010 03:18
-
-
Save nitsujw/354063 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 Popup | |
def make | |
"Making from instance" | |
end | |
def self.make | |
"Making from class" | |
end | |
end | |
irb(main):016:0* a = Popup.new | |
=> #<Popup:0xb768c100> | |
irb(main):017:0> a.class | |
=> Popup | |
irb(main):018:0> a.make | |
=> "Making from instance" | |
irb(main):012:0> a = Popup | |
=> Popup | |
irb(main):013:0> a.class | |
=> Class | |
irb(main):014:0> a.make | |
=> "Making from class" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment