Methods

FFI::Generator::Function

Public Class Methods

new(params = { }) click to toggle source
# File lib/generator/function.rb, line 16
def initialize(params = { })
  super
  @type = get_attr('type')
end

Public Instance Methods

to_s() click to toggle source
# File lib/generator/function.rb, line 20
def to_s
  params = get_params(@node).inject([]) do |array, node|
    array << Argument.new(:node => node, :typedefs => @typedefs).to_s
  end
  @indent_str + "attach_function :#{@symname}, [ #{params.join(', ')} ], #{get_rtype}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.