Class: DefInclueModule

Inherits:
ErbPP
  • Object
show all
Defined in:
ext/numo/narray/gen/erbpp2.rb

Constant Summary

Constants inherited from ErbPP

ErbPP::ATTRS

Instance Attribute Summary

Attributes inherited from ErbPP

#children, #parent

Instance Method Summary collapse

Methods inherited from ErbPP

#add_child, #attr_method, #attrs, #check_params, define_attrs, #description, #find, #find_tmpl, #get, #has_attr?, #load_erb, #method_missing, #method_missing_alias, #parents, #result, #run, #search_method_in_parents, #set, #write

Constructor Details

#initialize(parent = nil, incl_class, incl_module, **opts, &block) ⇒ DefInclueModule

Returns a new instance of DefInclueModule.



319
320
321
# File 'ext/numo/narray/gen/erbpp2.rb', line 319

def initialize(parent=nil, incl_class, incl_module, **opts, &block)
  super(parent,incl_class:incl_class,incl_module:incl_module,**opts,&block)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ErbPP

Instance Method Details

#init_defObject



322
323
324
# File 'ext/numo/narray/gen/erbpp2.rb', line 322

def init_def
  "rb_include_module(#{get(:incl_class)}, #{get(:incl_module)});"
end