Skip to content

Instantly share code, notes, and snippets.

@ryanlecompte
Created April 14, 2011 17:43
Show Gist options
  • Save ryanlecompte/920031 to your computer and use it in GitHub Desktop.
Save ryanlecompte/920031 to your computer and use it in GitHub Desktop.
ruby-1.9.2-head :001 > module M1
ruby-1.9.2-head :002?> def self.m1
ruby-1.9.2-head :003?> "self.m1 in M1"
ruby-1.9.2-head :004?> end
ruby-1.9.2-head :005?> end
=> nil
ruby-1.9.2-head :006 > module M2
ruby-1.9.2-head :007?> include M1
ruby-1.9.2-head :008?> def self.m2
ruby-1.9.2-head :009?> m1
ruby-1.9.2-head :010?> end
ruby-1.9.2-head :011?> end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment