Method: SFCBus::Parser.parse_bus_type
- Defined in:
- lib/sfcbus/parser.rb
.parse_bus_type(str) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/sfcbus/parser.rb', line 43 def self.parse_bus_type(str) char = str.sub('r', '') return SFCBus::Types::Normal if char == '' { 't' => SFCBus::Types::Twinliner, 's' => SFCBus::Types::Sasakubo, 'n' => SFCBus::Types::Night }[char] end |