Module: RSMP::TLC::Modules::Display
- Included in:
- TrafficController
- Defined in:
- lib/rsmp/tlc/modules/display.rb
Overview
Display and output formatting
Instance Method Summary collapse
Instance Method Details
#format_signal_group_status ⇒ Object
16 17 18 |
# File 'lib/rsmp/tlc/modules/display.rb', line 16 def format_signal_group_status @signal_groups.map(&:state).join end |
#output_states ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/rsmp/tlc/modules/display.rb', line 6 def output_states return unless @live_output str = format_colored_signal_states modes = format_mode_indicators plan = "P#{@plan}" write_state_output(modes, plan, str) end |