Class: RoadToRubykaigi::Graphics::Player::Direction
- Inherits:
-
Data
- Object
- Data
- RoadToRubykaigi::Graphics::Player::Direction
- Defined in:
- lib/road_to_rubykaigi/graphics/player.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value
14 15 16 |
# File 'lib/road_to_rubykaigi/graphics/player.rb', line 14 def value @value end |
Instance Method Details
#name ⇒ Object
16 |
# File 'lib/road_to_rubykaigi/graphics/player.rb', line 16 def name = right? ? 'RIGHT' : 'LEFT' |
#right? ⇒ Boolean
15 |
# File 'lib/road_to_rubykaigi/graphics/player.rb', line 15 def right? = value == RIGHT |