Class: StoreNum
- Defined in:
- lib/erbpp/narray_def.rb,
ext/numo/narray/gen/narray_def.rb
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
- #condition(klass) ⇒ Object
-
#initialize(parent, tmpl) ⇒ StoreNum
constructor
A new instance of StoreNum.
Methods inherited from Store
#c_func, #c_iter, #definition, definitions, #extract_data
Methods inherited from DefMethod
#c_func, #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) ⇒ StoreNum
Returns a new instance of StoreNum.
346 347 348 |
# File 'lib/erbpp/narray_def.rb', line 346 def initialize(parent,tmpl) super(parent,tmpl,"numeric",nil,nil,nil) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErbPP
Instance Method Details
#condition(klass) ⇒ Object
350 351 352 |
# File 'lib/erbpp/narray_def.rb', line 350 def condition(klass) "IS_INTEGER_CLASS(#{klass}) || #{klass}==rb_cFloat || #{klass}==rb_cComplex" end |