Class: Representable::Collect::Hash

Inherits:
Pipeline
  • Object
show all
Defined in:
lib/representable/pipeline.rb

Constant Summary

Constants inherited from Pipeline

Pipeline::Insert, Pipeline::Stop

Instance Method Summary collapse

Methods included from Pipeline::Macros

#insert

Instance Method Details

#call(input, options) ⇒ Object



48
49
50
51
52
53
# File 'lib/representable/pipeline.rb', line 48

def call(input, options)
  {}.tap do |hsh|
    input.each { |key, item_fragment|
      hsh[key] = super(item_fragment, options) }# DISCUSS: NO :fragment set.
  end
end