Class: Gobstones::Lang::Verde

Inherits:
Color show all
Defined in:
lib/gobstones/lang/literals/color.rb

Constant Summary

Constants inherited from Literal

Literal::OPERATORS_MAPPING

Instance Method Summary collapse

Methods inherited from Color

#<, all, #opposite, order, #return_type

Methods inherited from Literal

#<, #<=>, #==, #evaluate, #if_false, #if_true, #not, #return_type, #same_type_as, #true?

Methods inherited from Expression

#evaluate, #is_function_call?

Methods included from EqualityDefinition

#==, #equality_attributes

Instance Method Details

#nextObject



75
76
77
# File 'lib/gobstones/lang/literals/color.rb', line 75

def next
  Azul.new
end

#previousObject



71
72
73
# File 'lib/gobstones/lang/literals/color.rb', line 71

def previous
  Rojo.new
end

#to_sObject



79
80
81
# File 'lib/gobstones/lang/literals/color.rb', line 79

def to_s
  'Verde'
end