class Carriage::Locale
Constants
- HOSTS
Attributes
host[R]
Public Class Methods
new(locale)
click to toggle source
# File lib/carriage/locale.rb, line 29 def initialize(locale) @host = HOSTS.fetch(locale.to_sym.downcase) { |value| raise NotFound, "Locale not found: :#{value}" } end