Sha256: 2d90d787f907f84141291d5462830187063da1a30faf26a60cf3398dd54df6e0
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
X = :partial_unspecified_argument module Yogo module Support module Proc module Partial def partial(*args) ::Proc.new do |*spice| result = args.collect do |a| X == a ? spice.shift : a end call(*result) end end end # Partial end # Proc end # Support end # Yogo
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yogo-support-0.1.1 | lib/yogo/support/proc/partial.rb |
yogo-support-0.1.0 | lib/yogo/support/proc/partial.rb |