Sha256: 3e5972971390250b75c98840bd832d273045b12a57bef54c9ea074729cc5937c

Contents?: true

Size: 298 Bytes

Versions: 16

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

module JapanETC
  module EntranceOrExit
    ENTRANCE = '入口'
    EXIT     = '出口'

    def self.from(text)
      case text
      when /入口/, /(入)/, '入'
        ENTRANCE
      when /出口/, /(出)/, '出'
        EXIT
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
japan_etc-0.14.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.13.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.12.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.11.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.10.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.9.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.8.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.7.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.6.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.5.2 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.5.1 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.5.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.4.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.3.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.2.0 lib/japan_etc/entrance_or_exit.rb
japan_etc-0.1.0 lib/japan_etc/entrance_or_exit.rb