Skip to content

Instantly share code, notes, and snippets.

@shanemcd
Created December 11, 2012 15:03
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 shanemcd/4259171 to your computer and use it in GitHub Desktop.
Save shanemcd/4259171 to your computer and use it in GitHub Desktop.
modules
module Foobar
def self.foo
puts 'foo'
end
end
module Foobar
def self.bar
puts 'bar'
end
end
class Test
include Foobar
Foobar.foo
Foobar.bar
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment