module JapanETC::Direction
Constants
- CLOCKWISE
- COUNTERCLOCKWISE
- EAST
- INBOUND
- NORTH
- OUTBOUND
- SOUTH
- WEST
Public Class Methods
from(text)
click to toggle source
# File lib/japan_etc/direction.rb, line 14 def self.from(text) case text when '上り', '上' INBOUND when '下り', '下' OUTBOUND when '外回り', '外' CLOCKWISE when '内回り', '内' COUNTERCLOCKWISE when /北行/, '北' NORTH when /南行/, '南' SOUTH when /東行/, '東' EAST when /西行/, '西' WEST end end