Class: Gobstones::Lang::Negro
- 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
47
48
49
|
# File 'lib/gobstones/lang/literals/color.rb', line 47
def next
Rojo.new
end
|
#previous ⇒ Object
43
44
45
|
# File 'lib/gobstones/lang/literals/color.rb', line 43
def previous
Azul.new
end
|
#to_s ⇒ Object
51
52
53
|
# File 'lib/gobstones/lang/literals/color.rb', line 51
def to_s
'Negro'
end
|