Sha256: a5613696ad34aad1b3e9bd6df851c666eb66ac6d8327511e804f3cb3f2ded56a
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
# frozen_string_literal: true require 'ruby-enum/version' require 'ruby-enum/enum' require 'ruby-enum/enum/case' require 'ruby-enum/enum/i18n_mock' # Try to load the I18n gem and provide a mock if it is not available. begin require 'i18n' Ruby::Enum.i18n = I18n rescue LoadError # I18n is not available # :nocov: # Tests for this loading are in the spec_i18n folder Ruby::Enum.i18n = Ruby::Enum::I18nMock # :nocov: end Ruby::Enum.i18n.load_path << File.join(File.dirname(__FILE__), 'config', 'locales', 'en.yml') require 'ruby-enum/errors/base' require 'ruby-enum/errors/uninitialized_constant_error' require 'ruby-enum/errors/duplicate_key_error' require 'ruby-enum/errors/duplicate_value_error'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-enum-1.0.0 | lib/ruby-enum.rb |