Sha256: 2e6cbcdf7c6f2ca3661eaf5b10ed37db8a2f17812a53f1dffc89aed556ea6f34
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
require_relative '../procstar' module Procstar module ArrayCallChain def to_proc lambda{ |obj| if self.first.is_a? Array self.inject(obj){ |result, nested_array| nested_array.to_proc.call result } else obj.send(*self) end } end end end Array.send :include, Procstar::ArrayCallChain
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
procstar-1.0.0 | lib/procstar/array_call_chain.rb |