Skip to content

Instantly share code, notes, and snippets.

@nitsujw
Created April 3, 2010 03:18
Show Gist options
  • Save nitsujw/354063 to your computer and use it in GitHub Desktop.
Save nitsujw/354063 to your computer and use it in GitHub Desktop.
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