class Momo::FuncCall
Public Class Methods
new(name, stack, *args)
click to toggle source
# File lib/momo/funccall.rb, line 4 def initialize(name, stack, *args) @name = name @args = [] @stack = stack if !stack.is_a? Stack raise "#{stack.inspect} is not a stack" end args.each do |arg| @args << Momo.resolve(arg, stack: stack) end if @args.length == 1 @args = @args[0] end end
Public Instance Methods
representation()
click to toggle source
# File lib/momo/funccall.rb, line 19 def representation {@name => @args} end