Class: FFI::Generator::Type

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

Direct Known Subclasses

Callback, Function, Function::Argument, Typedef

Instance Attribute Summary

Attributes inherited from Node

#symname

Instance Method Summary collapse

Methods inherited from Node

#get_attr

Constructor Details

#initialize(params = { }) ⇒ Type

Returns a new instance of Type.



60
61
62
63
# File 'lib/generator/generator.rb', line 60

def initialize(params = { })
  super
  @statement = params[:statement] || get_statement
end

Instance Method Details

#to_sObject



64
65
66
# File 'lib/generator/generator.rb', line 64

def to_s
  get_type
end