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?

Methods included from EqualityDefinition

#==, #equality_attributes

Instance Method Details

#nextObject



47
48
49
# File 'lib/gobstones/lang/literals/color.rb', line 47

def next
  Rojo.new
end

#previousObject



43
44
45
# File 'lib/gobstones/lang/literals/color.rb', line 43

def previous
  Azul.new
end

#to_sObject



51
52
53
# File 'lib/gobstones/lang/literals/color.rb', line 51

def to_s
  'Negro'
end