Sha256: 72eb7b811b49ccf8a92988e36461146f6da566dc42731f9219620865e36ce879
Contents?: true
Size: 368 Bytes
Versions: 23
Compression:
Stored size: 368 Bytes
Contents
# Object#with -- by Dan Yoder, dev.zeraweb.com -- this is something from Pascal # and JavaScript. here's the use case. # instead of: # some_object.do_x # some_object.do_y # some_object.do_z # # you can instead do: # with(some_object) # do_x # do_y # do_z # end class Object def with(object, &block) object.instance_eval &block end end
Version data entries
23 entries across 23 versions & 7 rubygems