Module: Chewy::Index::Crutch::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#crutch(name, &block) ⇒ Object



34
35
36
# File 'lib/chewy/index/crutch.rb', line 34

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