2017-02-03 23:35:06 +00:00
|
|
|
require 'hashie/logger'
|
2014-07-07 17:27:08 +00:00
|
|
|
require 'hashie/version'
|
|
|
|
|
2010-07-29 21:30:47 +00:00
|
|
|
module Hashie
|
2014-04-30 17:34:37 +00:00
|
|
|
autoload :Clash, 'hashie/clash'
|
|
|
|
autoload :Dash, 'hashie/dash'
|
|
|
|
autoload :Hash, 'hashie/hash'
|
|
|
|
autoload :Mash, 'hashie/mash'
|
|
|
|
autoload :Trash, 'hashie/trash'
|
|
|
|
autoload :Rash, 'hashie/rash'
|
2016-05-31 22:53:33 +00:00
|
|
|
autoload :Array, 'hashie/array'
|
2016-11-02 10:47:33 +00:00
|
|
|
autoload :Utils, 'hashie/utils'
|
2011-07-29 04:44:50 +00:00
|
|
|
|
|
|
|
module Extensions
|
2019-10-14 18:14:47 +00:00
|
|
|
autoload :Coercion, 'hashie/extensions/coercion'
|
|
|
|
autoload :DeepMerge, 'hashie/extensions/deep_merge'
|
|
|
|
autoload :IgnoreUndeclared, 'hashie/extensions/ignore_undeclared'
|
|
|
|
autoload :IndifferentAccess, 'hashie/extensions/indifferent_access'
|
|
|
|
autoload :MergeInitializer, 'hashie/extensions/merge_initializer'
|
|
|
|
autoload :MethodAccess, 'hashie/extensions/method_access'
|
|
|
|
autoload :MethodQuery, 'hashie/extensions/method_access'
|
|
|
|
autoload :MethodReader, 'hashie/extensions/method_access'
|
|
|
|
autoload :MethodWriter, 'hashie/extensions/method_access'
|
|
|
|
autoload :StringifyKeys, 'hashie/extensions/stringify_keys'
|
|
|
|
autoload :SymbolizeKeys, 'hashie/extensions/symbolize_keys'
|
|
|
|
autoload :DeepFetch, 'hashie/extensions/deep_fetch'
|
|
|
|
autoload :DeepFind, 'hashie/extensions/deep_find'
|
|
|
|
autoload :DeepLocate, 'hashie/extensions/deep_locate'
|
|
|
|
autoload :PrettyInspect, 'hashie/extensions/pretty_inspect'
|
|
|
|
autoload :KeyConversion, 'hashie/extensions/key_conversion'
|
2014-11-26 16:01:27 +00:00
|
|
|
autoload :MethodAccessWithOverride, 'hashie/extensions/method_access'
|
2019-10-14 18:14:47 +00:00
|
|
|
autoload :StrictKeyAccess, 'hashie/extensions/strict_key_access'
|
|
|
|
autoload :RubyVersion, 'hashie/extensions/ruby_version'
|
|
|
|
autoload :RubyVersionCheck, 'hashie/extensions/ruby_version_check'
|
2014-04-30 17:26:31 +00:00
|
|
|
|
2014-07-14 11:31:34 +00:00
|
|
|
module Parsers
|
|
|
|
autoload :YamlErbParser, 'hashie/extensions/parsers/yaml_erb_parser'
|
|
|
|
end
|
|
|
|
|
2014-05-05 12:57:20 +00:00
|
|
|
module Dash
|
|
|
|
autoload :IndifferentAccess, 'hashie/extensions/dash/indifferent_access'
|
2015-04-26 03:41:14 +00:00
|
|
|
autoload :PropertyTranslation, 'hashie/extensions/dash/property_translation'
|
2015-08-28 16:12:56 +00:00
|
|
|
autoload :Coercion, 'hashie/extensions/dash/coercion'
|
2014-05-05 12:57:20 +00:00
|
|
|
end
|
2014-08-18 18:00:05 +00:00
|
|
|
|
|
|
|
module Mash
|
2017-02-23 01:37:07 +00:00
|
|
|
autoload :KeepOriginalKeys, 'hashie/extensions/mash/keep_original_keys'
|
2019-11-17 17:16:10 +00:00
|
|
|
autoload :PermissiveRespondTo, 'hashie/extensions/mash/permissive_respond_to'
|
2014-08-18 18:00:05 +00:00
|
|
|
autoload :SafeAssignment, 'hashie/extensions/mash/safe_assignment'
|
2017-02-20 05:31:10 +00:00
|
|
|
autoload :SymbolizeKeys, 'hashie/extensions/mash/symbolize_keys'
|
2015-11-15 13:57:51 +00:00
|
|
|
autoload :DefineAccessors, 'hashie/extensions/mash/define_accessors'
|
2014-08-18 18:00:05 +00:00
|
|
|
end
|
2016-05-31 22:53:33 +00:00
|
|
|
|
|
|
|
module Array
|
|
|
|
autoload :PrettyInspect, 'hashie/extensions/array/pretty_inspect'
|
|
|
|
end
|
2011-07-29 04:44:50 +00:00
|
|
|
end
|
2014-12-23 20:06:40 +00:00
|
|
|
|
|
|
|
class << self
|
|
|
|
include Hashie::Extensions::StringifyKeys::ClassMethods
|
|
|
|
include Hashie::Extensions::SymbolizeKeys::ClassMethods
|
|
|
|
end
|
2017-02-10 23:24:03 +00:00
|
|
|
|
|
|
|
require 'hashie/railtie' if defined?(::Rails)
|
2010-07-29 21:30:47 +00:00
|
|
|
end
|