Method: CallChain#call
- Defined in:
- lib/callchain.rb
#call(thing) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/callchain.rb', line 30 def call(thing) return thing unless chain chain.each do |filter| thing = filter.call(thing) yield thing, filter if block_given? end thing end |