Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created January 26, 2009 04:52
Show Gist options
  • Save ashgti/52710 to your computer and use it in GitHub Desktop.
Save ashgti/52710 to your computer and use it in GitHub Desktop.
class Object
def new_method
puts "hi from a new method"
end
end
class One
end
a = One.new
a.new_method # puts "hi from a new method"
def a.funky
puts "Funky"
end
a.funky # puts "Funky"
b = One.new
b.funky # results in a method error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment