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

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

Instance Method Summary collapse

Instance Method Details

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



15
16
17
# File 'lib/representable/hash/collection.rb', line 15

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