Class: Pipetree::Collect::Hash

Inherits:
Pipetree::Collect show all
Defined in:
lib/pipetree.rb

Overview

DISCUSS: will this make it into the final version?

Constant Summary

Constants inherited from Pipetree

Insert, Stop, VERSION

Instance Method Summary collapse

Methods included from Macros

#insert!

Methods included from Inspect

#inspect, #inspect_func, #inspect_line, #inspect_object, #inspect_proc, #inspect_row, #inspect_rows

Instance Method Details

#call(input, options) ⇒ Object


47
48
49
50
51
52
# File 'lib/pipetree.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