Class: StoreArray
- Defined in:
- lib/erbpp/narray_def.rb,
ext/numo/narray/gen/narray_def.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Store
Constants inherited from ErbPP
Instance Attribute Summary
Attributes inherited from Store
#dtype, #macro, #tmpl, #tpclass, #tpname
Attributes inherited from ErbPP
Instance Method Summary collapse
- #c_func ⇒ Object
- #condition(klass) ⇒ Object
-
#initialize(parent, tmpl) ⇒ StoreArray
constructor
A new instance of StoreArray.
Methods inherited from Store
#c_iter, #definition, definitions, #extract_data
Methods inherited from DefMethod
#c_iter, #c_name, #define_method_args, #id_op, #init_def, #op_map, #singleton
Methods included from DeclMethod
#def_alias, #def_alloc_func, #def_const, #def_method, #def_module_function, #def_singleton_method, #undef_alloc_func, #undef_method, #undef_singleton_method
Methods inherited from ErbPP
#add_child, #attr_method, #attrs, #check_params, define_attrs, #description, #find, #find_tmpl, #get, #has_attr?, #init_def, #load_erb, #method_missing, #method_missing_alias, #parents, #result, #run, #search_method_in_parents, #set, #write
Constructor Details
#initialize(parent, tmpl) ⇒ StoreArray
Returns a new instance of StoreArray.
356 357 358 |
# File 'lib/erbpp/narray_def.rb', line 356 def initialize(parent,tmpl) super(parent,tmpl,"array",nil,nil,nil) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErbPP
Instance Method Details
#c_func ⇒ Object
360 361 362 |
# File 'lib/erbpp/narray_def.rb', line 360 def c_func "numo_#{tp}_#{tmpl}" end |
#condition(klass) ⇒ Object
364 365 366 |
# File 'lib/erbpp/narray_def.rb', line 364 def condition(klass) "#{klass}==rb_cArray" end |