Skip to content

Instantly share code, notes, and snippets.

@softcraft-development
Created April 10, 2013 15:35
Show Gist options
  • Save softcraft-development/5355689 to your computer and use it in GitHub Desktop.
Save softcraft-development/5355689 to your computer and use it in GitHub Desktop.
module A
def a_method
"a method"
end
end
module B
extend A
def b_method
"b method"
end
end
class C
include B
def c_method
"c method"
end
end
c = C.new
puts c.c_method
puts c.b_method
puts c.a_method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment