Class: Gobstones::Lang::Azul
- 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
33
34
35
|
# File 'lib/gobstones/lang/literals/color.rb', line 33
def next
Negro.new
end
|
#previous ⇒ Object
29
30
31
|
# File 'lib/gobstones/lang/literals/color.rb', line 29
def previous
Verde.new
end
|
#to_s ⇒ Object
37
38
39
|
# File 'lib/gobstones/lang/literals/color.rb', line 37
def to_s
'Azul'
end
|