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



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

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