Sha256: 7ff7ad348d192a725bda7685b9911d824f36987c6a5289f9a9c839251ebc62af

Contents?: true

Size: 990 Bytes

Versions: 2

Compression:

Stored size: 990 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Using integrate is just like using include except the module included is a reconstruction of the one given altered by the commands given in the block.
- !ruby/struct:SM::Flow::P 
  body: "Convenient commands available are: #rename, #redef, #remove, #nodef and #wrap. But any module method can be used."
- !ruby/struct:SM::Flow::VERB 
  body: "  module W\n    def q ; "q" ; end\n    def y ; "y" ; end\n  end\n\n  class X\n    integrate W do\n      nodef :y\n    end\n  end\n\n  x = X.new\n  x.q  #=> "q"\n  x.y  #=> missing method error\n"
- !ruby/struct:SM::Flow::P 
  body: "This is like #revisal, but #revisal only returns the reconstructred module. It does not include it."
- !ruby/struct:SM::Flow::VERB 
  body: " CREDIT: Trans\n"
full_name: Module#integrate
is_singleton: false
name: integrate
params: (mod, &block)
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

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