class

Lua::Function

Inherits Lua::Object / Reference / Object

Instance methods

call(*args)

Make a call to the Lua function.

s = Lua::Stack.new
sum = s.run(%q{
   function sum(x, y)
     return x + y
   end

   return sum
 }).as(Lua::Function)

sum.call(2, 3) # => 5.0
Source
to_s(io)

String representation of the function. Contains number of args and function Lua source.

Source