Sha256: e7dfaeee40194384bef4a0f67a79cb00692a860fa01ce08a6fe318f46d87d90f
Contents?: true
Size: 473 Bytes
Versions: 2
Compression:
Stored size: 473 Bytes
Contents
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Prepend an <tt>aspect</tt> module to a module. - !ruby/struct:SM::Flow::VERB body: " module X\n def x; "x"; end\n end\n\n module U\n def x; '{' + super + '}'; end\n end\n\n X.prepend U\n\n X.x # => "{x}"\n\n CREDIT Trans\n" full_name: Module#prepend is_singleton: false name: prepend params: (aspect) visibility: public
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.2 | doc/ri/Module/prepend-i.yaml |
facets-2.4.3 | doc/ri/Module/prepend-i.yaml |