Class: FFI::Generator::Typedef

Inherits:
Type
  • Object
show all
Defined in:
lib/generator/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#to_s

Methods inherited from Node

#get_attr

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

#statementObject (readonly)

Returns the value of attribute statement.



157
158
159
# File 'lib/generator/generator.rb', line 157

def statement
  @statement
end

#symnameObject (readonly)

Returns the value of attribute symname.



157
158
159
# File 'lib/generator/generator.rb', line 157

def symname
  @symname
end