Class: RoadToRubykaigi::SignalInterpreter::Walk
- Inherits:
-
Data
- Object
- Data
- RoadToRubykaigi::SignalInterpreter::Walk
- Defined in:
- lib/road_to_rubykaigi/signal_interpreter.rb
Overview
continuation briefly absent; next event -> WALKING (same direction), timeout -> STOPPED
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#speed_ratio ⇒ Object
readonly
Returns the value of attribute speed_ratio.
Instance Method Summary collapse
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction
30 31 32 |
# File 'lib/road_to_rubykaigi/signal_interpreter.rb', line 30 def direction @direction end |
#speed_ratio ⇒ Object (readonly)
Returns the value of attribute speed_ratio
30 31 32 |
# File 'lib/road_to_rubykaigi/signal_interpreter.rb', line 30 def speed_ratio @speed_ratio end |
Instance Method Details
#right? ⇒ Boolean
31 |
# File 'lib/road_to_rubykaigi/signal_interpreter.rb', line 31 def right? = direction == :right |