Class: Rbind::GeneratorC::OperationsHDRHelper
- Inherits:
-
HelperBase
- Object
- HelperBase
- Rbind::GeneratorC::OperationsHDRHelper
- Defined in:
- lib/rbind/generator_c.rb
Instance Attribute Summary
Attributes inherited from HelperBase
Instance Method Summary collapse
-
#initialize(name, root) ⇒ OperationsHDRHelper
constructor
A new instance of OperationsHDRHelper.
- #wrap_operations ⇒ Object
Methods inherited from HelperBase
Constructor Details
#initialize(name, root) ⇒ OperationsHDRHelper
Returns a new instance of OperationsHDRHelper.
149 150 151 |
# File 'lib/rbind/generator_c.rb', line 149 def initialize(name,root) super end |
Instance Method Details
#wrap_operations ⇒ Object
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/rbind/generator_c.rb', line 153 def wrap_operations str = "" @root.each_type do |type| next unless type.respond_to? :operations str2 = type.operations.map do |ops| ops.map do |op| "#{op.csignature};" end.join("\n") end.join("\n") if !str2.empty? str += "\n\n///methods for #{type.full_name}\n" str += str2 end end str end |