Skip to content

Instantly share code, notes, and snippets.

/foo.rb Secret

Created June 15, 2016 10:01
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 anonymous/018007d537313e3db54e74072e91ee33 to your computer and use it in GitHub Desktop.
Save anonymous/018007d537313e3db54e74072e91ee33 to your computer and use it in GitHub Desktop.
m = Module.new; p m.methods; m.send(:define_method, :hrm,&(proc {puts "Hrpmf!";}) ); c = Class.new; c.class_eval { def foo; puts "Foo!";end }; c.extend(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment