Module: DescendantsDescribable::ClassMethods

Defined in:
lib/descendants_describable.rb

Instance Method Summary collapse

Instance Method Details

#describe_descendants_with(description_module, &block) ⇒ Object



7
8
9
10
11
12
# File 'lib/descendants_describable.rb', line 7

def describe_descendants_with(description_module, &block)
  descriptor = DescendantsDescriptor.new(self, description_module, block)
  descriptor.describe_descendants
  descriptor.register_reload_hook
  descriptor
end