Sha256: 5346fde16a4453e36148c4d1cddbb5b91fefc2a773bf5b5a63eb4d826d301855
Contents?: true
Size: 257 Bytes
Versions: 4
Compression:
Stored size: 257 Bytes
Contents
class Binding # Returns a new binding with local varaibles set. # # CREDIT: Trans def with(_local_variables, &_yields) eval("lambda{ |#{_local_variables.keys.join(',')},&yields| binding }").call(*_local_variables.values, &_yields) end end
Version data entries
4 entries across 4 versions & 2 rubygems