Sha256: 3f5a2282fd22a8d60735989de30404a1d44971e1bb9b897cb84d6140a1761a4b
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Translates a Proc into an OpenObject. By droping an OpenObject into the Proc, the resulting assignments incured as the procedure is evaluated produce the OpenObject. This technique is simlar to that of MethodProbe. - !ruby/struct:SM::Flow::VERB body: " p = lambda { |x|\n x.word = "Hello"\n }\n o = p.to_openobject\n o.word #=> "Hello"\n" - !ruby/struct:SM::Flow::P body: NOTE The Proc must have an arity of one --no more and no less. full_name: Proc#to_openobject is_singleton: false name: to_openobject params: () visibility: public
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.2 | doc/ri/Proc/to_openobject-i.yaml |
facets-2.4.3 | doc/ri/Proc/to_openobject-i.yaml |