Sha256: e4d94302ee765d46c5a8601acd3b26f0c77c1d2e2c1e591efc56a2ed9a53a98b
Contents?: true
Size: 303 Bytes
Versions: 1
Compression:
Stored size: 303 Bytes
Contents
module Locale module Base private def assert_valid_language! unless [2, 4, 5, 6].include?(language.size) && (language =~ /^[A-Za-z-]+$/) raise ArgumentError, "Unknown language format: #{language.inspect}. Valid format example is: 'en'" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_generator-3.0.0 | lib/generators/locale/base.rb |