Class: StoreArray
Direct Known Subclasses
Constant Summary
Constants inherited from Store
Constants inherited from Function
Constants inherited from ErbPP
Instance Attribute Summary
Attributes inherited from Store
#dtype, #macro, #tmpl, #tpclass, #tpname
Instance Method Summary collapse
- #c_func ⇒ Object
- #condition ⇒ Object
-
#initialize(parent, tmpl) ⇒ StoreArray
constructor
A new instance of StoreArray.
Methods inherited from Store
#c_iter, #definition, definitions
Methods inherited from Function
#c_iter, #c_method, #code, codes, #definition, definitions, #id_op, #method, #op_map
Methods inherited from ErbPP
#attr_method, #attrs, #check_params, define_attrs, #has_attr?, #load_erb, #method_missing, #method_missing_alias, #parents, #result, #run, #search_method_in_parents
Constructor Details
#initialize(parent, tmpl) ⇒ StoreArray
Returns a new instance of StoreArray.
325 326 327 |
# File 'lib/erbpp/narray_def.rb', line 325 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
329 330 331 |
# File 'lib/erbpp/narray_def.rb', line 329 def c_func "numo_#{tp}_#{tmpl}" end |
#condition ⇒ Object
333 334 335 |
# File 'lib/erbpp/narray_def.rb', line 333 def condition "TYPE(obj)==T_ARRAY" end |