Module: JustInclude::IncludedModuleClassMethods

Defined in:
lib/just_include/just_include.rb

Instance Method Summary collapse

Instance Method Details

#included(including_class) ⇒ Object



17
18
19
# File 'lib/just_include/just_include.rb', line 17

def included(including_class)
  including_class.class_eval(&self.block)
end

#just_include(&block) ⇒ Object



12
13
14
15
# File 'lib/just_include/just_include.rb', line 12

def just_include(&block)
  class << self; attr_accessor :block; end
  self.block = block
end