-
-
Save anonymous/018007d537313e3db54e74072e91ee33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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