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
337 338 339 340 341 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 337 def init_def items = members.map{|s| "\"#{s}\""}.join(",") "/*#{description}*/ #{class_var} = rb_struct_define(\"#{class_name}\",#{items},NULL);" end |
#method_code ⇒ Object
334 335 336 |
# File 'ext/cumo/narray/gen/erbpp2.rb', line 334 def method_code "static VALUE #{class_var};" end |