Class: Gobstones::Lang::Rojo
- 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?
#==, #equality_attributes
Instance Method Details
#next ⇒ Object
61
62
63
|
# File 'lib/gobstones/lang/literals/color.rb', line 61
def next
Verde.new
end
|
#previous ⇒ Object
57
58
59
|
# File 'lib/gobstones/lang/literals/color.rb', line 57
def previous
Negro.new
end
|
#to_s ⇒ Object
65
66
67
|
# File 'lib/gobstones/lang/literals/color.rb', line 65
def to_s
'Rojo'
end
|