Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonroelofs/ba70246fc8e5e772359e to your computer and use it in GitHub Desktop.
Save jasonroelofs/ba70246fc8e5e772359e to your computer and use it in GitHub Desktop.
class Something
def
def my_method
puts "I got: #{my_method}"
end
end
s = Something.new
s.def("something")
s.my_method
# $ ruby oops.rb
# => I got: something
# => oops.rb:11:in `<main>': undefined method `my_method' for #<Something:0x007f9d64275d18> (NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment