Skip to content

Instantly share code, notes, and snippets.

@Mikr0Tik
Created February 24, 2010 07:21
Show Gist options
  • Save Mikr0Tik/313214 to your computer and use it in GitHub Desktop.
Save Mikr0Tik/313214 to your computer and use it in GitHub Desktop.
module Foo
def self.included base
include Foo::InstanceMethods
end
module InstanceMethods
def bar
@bar = 'Bar'
end
end
end
require 'foo'
YourClass.send(:include, Foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment