Skip to content

Instantly share code, notes, and snippets.

@jaydonnell
Created December 30, 2009 21:10
Show Gist options
  • Save jaydonnell/266390 to your computer and use it in GitHub Desktop.
Save jaydonnell/266390 to your computer and use it in GitHub Desktop.
class Jay
def a; puts 'a' end
end
class Jay
define_method(:b) { puts 'b' }
end
Jay.class.send(:define_method, :c) { puts 'c' }
j = Jay.new
j.a
j.b
j.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment