Class: FFI::Generator::Function::Argument

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

Constant Summary

Constants inherited from Type

Type::ArrayRE, Type::ArraySizeRE

Instance Attribute Summary

Attributes inherited from Type

#full_decl

Attributes inherited from Node

#symname

Instance Method Summary collapse

Methods inherited from Type

#initialize

Methods inherited from Node

#get_attr, #initialize

Constructor Details

This class inherits a constructor from FFI::Generator::Type

Instance Method Details

#to_sObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/generator/function.rb', line 5

def to_s
  case get_attr('type')
  when 'void'
    nil
  when 'v(...)'
    ':varargs'
  else
    super
  end
end