Skip to content

Instantly share code, notes, and snippets.

@banister
Created December 18, 2008 13:28
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 banister/37491 to your computer and use it in GitHub Desktop.
Save banister/37491 to your computer and use it in GitHub Desktop.
C = Class.new
def hello
m = Module.new do
def fren; puts "fren!"; end
end
C.class_eval do
include m
end
end
hello
C.new.fren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment