Sha256: 6279e569fb136679aecbcdedd4b5c0c100796ab251500c31697a867ab3200da7

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: wrap
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Creates a new method wrapping the previous of the same name. Reference to the old method is passed into the new definition block as the first parameter.
- !ruby/struct:SM::Flow::VERB 
  body: "  wrap_method( sym ) { |old_meth, *args|\n    old_meth.call\n    ...\n  }\n"
- !ruby/struct:SM::Flow::P 
  body: Keep in mind that this can not be used to wrap methods that take a block.
- !ruby/struct:SM::Flow::VERB 
  body: "  CREDIT: Trans\n"
full_name: Module#wrap_method
is_singleton: false
name: wrap_method
params: ( sym, &blk )
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.2 doc/ri/Module/wrap_method-i.yaml
facets-2.4.3 doc/ri/Module/wrap_method-i.yaml