Sha256: 619979891d0a504289b96e3c682e49cf8e5f11c7b6436acf6c0785f915fc1dde
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
module Kernel # A Pascal/ActionScript like <tt>with</tt> method. Yields its # argument to the provided block and then returns it. # with([]) do |a| # a << "a" # a << "b" # end # #=> ["a", "b"] def with(o, &blk) #:doc: o.tap(&blk) end private :with end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shenanigans-1.0.13 | lib/shenanigans/kernel/with.rb |