Methods

FFI::Generator::Callback

Public Class Methods

new(params = { }) click to toggle source
# File lib/generator/function.rb, line 37
def initialize(params = { })
  super(params)
  @inline = true if params[:inline] == true
end

Public Instance Methods

to_s() click to toggle source
# File lib/generator/function.rb, line 41
def to_s
  unless @inline
    @indent_str + "callback(:#{@symname}, [ #{get_params.join(', ')} ], #{get_rtype})"
  else
    @indent_str + "callback([ #{get_params.join(', ')} ], #{get_rtype})"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.