Module: HALDecorator::Collection

Included in:
HALDecorator
Defined in:
lib/hal_decorator/collection.rb

Defined Under Namespace

Classes: CollectionParameters

Instance Method Summary collapse

Instance Method Details

#collection(of:, &block) ⇒ Object



19
20
21
# File 'lib/hal_decorator/collection.rb', line 19

def collection(of:, &block)
  @_parameters = CollectionParameters.new(of, &block)
end