Module: Representable::Hash::Collection::ClassMethods

Defined in:
lib/representable/hash/collection.rb

Instance Method Summary collapse

Instance Method Details

#items(options = {}, &block) ⇒ Object



17
18
19
# File 'lib/representable/hash/collection.rb', line 17

def items(options={}, &block)
  collection(:_self, options.merge(:getter => lambda { |*| self }), &block)
end