Class: StoreArray

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

Direct Known Subclasses

CastArray

Constant Summary

Constants inherited from Store

Store::DEFS

Constants inherited from Function

Function::DEFS

Constants inherited from ErbPP

ErbPP::ATTRS

Instance Attribute Summary

Attributes inherited from Store

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

Instance Method Summary collapse

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.



326
327
328
# File 'lib/erbpp/narray_def.rb', line 326

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_funcObject



330
331
332
# File 'lib/erbpp/narray_def.rb', line 330

def c_func
  "numo_#{tp}_#{tmpl}"
end

#conditionObject



334
335
336
# File 'lib/erbpp/narray_def.rb', line 334

def condition
  "TYPE(obj)==T_ARRAY"
end