Class: DefStruct
Instance Attribute Summary
Attributes inherited from ErbPP
Instance Method Summary collapse
Methods inherited from ErbPP
#add_child, #description, #find, #find_tmpl, #get, #initialize, #load_erb, #method_missing, #method_missing_alias, #result, #run, #set, #write
Constructor Details
This class inherits a constructor from ErbPP
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErbPP
Instance Method Details
#init_def ⇒ Object
339 340 341 342 343 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 339 def init_def items = members.map { |s| "\"#{s}\"" }.join(",") "/*#{description}*/ #{class_var} = rb_struct_define(\"#{class_name}\",#{items},NULL);" end |
#method_code ⇒ Object
336 337 338 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 336 def method_code "static VALUE #{class_var};" end |