class Gobstones::Lang::Procedure

Public Class Methods

new(name, args, body) click to toggle source

TODO rename args to a better name, args_tuple?

Calls superclass method Gobstones::Lang::Definition::new
# File lib/gobstones/lang/definitions/procedure.rb, line 10
def initialize(name, args, body)
  super(name, args, body, NoReturnStatement.new)
end

Public Instance Methods

create_context_based_on(outer_context) click to toggle source
# File lib/gobstones/lang/definitions/procedure.rb, line 18
def create_context_based_on(outer_context)
  Runner::ProcedureExecutionContext.based_on(outer_context)
end
definition_type() click to toggle source
# File lib/gobstones/lang/definitions/procedure.rb, line 14
def definition_type
  'procedure'
end