Class: DefInclueModule

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

Instance Attribute Summary

Attributes inherited from ErbPP

#children, #parent

Instance Method Summary collapse

Methods inherited from ErbPP

#add_child, #description, #find, #find_tmpl, #get, #load_erb, #method_missing, #method_missing_alias, #result, #run, #set, #write

Constructor Details

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

Returns a new instance of DefInclueModule.



338
339
340
# File 'ext/numo/narray/gen/erbpp2.rb', line 338

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



341
342
343
# File 'ext/numo/narray/gen/erbpp2.rb', line 341

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