Class: FFI::Generator::Typedef
- Defined in:
- lib/generator/generator.rb
Instance Attribute Summary collapse
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
-
#symname ⇒ Object
readonly
Returns the value of attribute symname.
Instance Method Summary collapse
-
#initialize(params = { }) ⇒ Typedef
constructor
A new instance of Typedef.
Methods inherited from Type
Methods inherited from Node
Constructor Details
#initialize(params = { }) ⇒ Typedef
Returns a new instance of Typedef.
158 159 160 161 162 163 |
# File 'lib/generator/generator.rb', line 158 def initialize(params = { }) super @symname = get_attr('name') # @type = is_pointer? ? ':pointer' : get_attr('type') # p @statement end |
Instance Attribute Details
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
157 158 159 |
# File 'lib/generator/generator.rb', line 157 def statement @statement end |
#symname ⇒ Object (readonly)
Returns the value of attribute symname.
157 158 159 |
# File 'lib/generator/generator.rb', line 157 def symname @symname end |