Module: Chewy::Type::Crutch::ClassMethods

Defined in:
lib/chewy/type/crutch.rb

Instance Method Summary collapse

Instance Method Details

#crutch(name, &block) ⇒ Object



26
27
28
# File 'lib/chewy/type/crutch.rb', line 26

def crutch(name, &block)
  self._crutches = _crutches.merge(name.to_sym => block)
end