Class: CastArray

Inherits:
StoreArray show all
Defined in:
lib/erbpp/narray_def.rb

Constant Summary

Constants inherited from Store

Store::DEFS

Constants inherited from ErbPP

ErbPP::ATTRS

Instance Attribute Summary

Attributes inherited from Store

#dtype, #macro, #tmpl, #tpclass, #tpname

Attributes inherited from ErbPP

#children, #parent

Instance Method Summary collapse

Methods inherited from StoreArray

#initialize

Methods inherited from Store

#definition, definitions, #extract_data, #initialize

Methods inherited from DefMethod

#c_name, #define_method_args, #id_op, #init_def, #initialize, #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, #initialize, #load_erb, #method_missing, #method_missing_alias, #parents, #result, #run, #search_method_in_parents, #set, #write

Constructor Details

This class inherits a constructor from StoreArray

Dynamic Method Handling

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

Instance Method Details

#c_funcObject



374
375
376
# File 'lib/erbpp/narray_def.rb', line 374

def c_func
  "numo_#{tp}_cast_#{tpname}"
end

#c_iterObject



378
379
380
# File 'lib/erbpp/narray_def.rb', line 378

def c_iter
  "iter_#{tp}_cast_#{tpname}"
end

#condition(klass) ⇒ Object



370
371
372
# File 'lib/erbpp/narray_def.rb', line 370

def condition(klass)
  nil
end