Class: Gobstones::Lang::Siguiente

Inherits:
OneArgExpression show all
Defined in:
lib/gobstones/lang/expressions/primitive_functions.rb

Instance Attribute Summary

Attributes inherited from OneArgExpression

#argument

Instance Method Summary collapse

Methods inherited from OneArgExpression

#equality_attributes, #initialize, #with_evaluated_argument_in

Methods inherited from Expression

#is_function_call?

Methods included from EqualityDefinition

#==, #equality_attributes

Constructor Details

This class inherits a constructor from Gobstones::Lang::OneArgExpression

Instance Method Details

#evaluate(context) ⇒ Object



53
54
55
# File 'lib/gobstones/lang/expressions/primitive_functions.rb', line 53

def evaluate(context)
  with_evaluated_argument_in(context, &:next)
end

#to_sObject



57
58
59
# File 'lib/gobstones/lang/expressions/primitive_functions.rb', line 57

def to_s
  'siguiente() expression'
end