Class: Allocate

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

Constant Summary

Constants inherited from Function

Function::DEFS

Constants inherited from ErbPP

ErbPP::ATTRS

Instance Method Summary collapse

Methods inherited from Function

#c_func, #c_iter, #c_method, #code, codes, definitions, #id_op, #initialize, #method, #op_map

Methods inherited from ErbPP

#attr_method, #attrs, #check_params, define_attrs, #has_attr?, #initialize, #load_erb, #method_missing, #method_missing_alias, #parents, #result, #run, #search_method_in_parents

Constructor Details

This class inherits a constructor from Function

Dynamic Method Handling

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

Instance Method Details

#definitionObject



270
271
272
# File 'lib/erbpp/narray_def.rb', line 270

def definition
  "rb_define_alloc_func(#{mod_var}, #{c_func});"
end