Module: Hashie

Extended by:
Extensions::StringifyKeys::ClassMethods, Extensions::SymbolizeKeys::ClassMethods
Defined in:
lib/hashie/extensions/ruby_version.rb,
lib/hashie.rb,
lib/hashie/dash.rb,
lib/hashie/hash.rb,
lib/hashie/mash.rb,
lib/hashie/rash.rb,
lib/hashie/array.rb,
lib/hashie/clash.rb,
lib/hashie/trash.rb,
lib/hashie/utils.rb,
lib/hashie/logger.rb,
lib/hashie/version.rb,
lib/hashie/extensions/coercion.rb,
lib/hashie/extensions/deep_find.rb,
lib/hashie/extensions/deep_fetch.rb,
lib/hashie/extensions/deep_merge.rb,
lib/hashie/extensions/deep_locate.rb,
lib/hashie/extensions/dash/coercion.rb,
lib/hashie/extensions/method_access.rb,
lib/hashie/extensions/key_conversion.rb,
lib/hashie/extensions/pretty_inspect.rb,
lib/hashie/extensions/stringify_keys.rb,
lib/hashie/extensions/symbolize_keys.rb,
lib/hashie/extensions/ignore_undeclared.rb,
lib/hashie/extensions/merge_initializer.rb,
lib/hashie/extensions/strict_key_access.rb,
lib/hashie/extensions/indifferent_access.rb,
lib/hashie/extensions/ruby_version_check.rb,
lib/hashie/extensions/mash/symbolize_keys.rb,
lib/hashie/extensions/array/pretty_inspect.rb,
lib/hashie/extensions/key_conflict_warning.rb,
lib/hashie/extensions/mash/safe_assignment.rb,
lib/hashie/extensions/mash/define_accessors.rb,
lib/hashie/extensions/dash/indifferent_access.rb,
lib/hashie/extensions/mash/keep_original_keys.rb,
lib/hashie/extensions/parsers/yaml_erb_parser.rb,
lib/hashie/extensions/dash/property_translation.rb,
lib/hashie/extensions/mash/permissive_respond_to.rb,
lib/hashie/extensions/active_support/core_ext/hash.rb

Overview

Copyright (c) Chad Fowler, Rich Kilmer, Jim Weirich and others. Portions copyright (c) Engine Yard and Andre Arko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Defined Under Namespace

Modules: Extensions, Utils Classes: Array, Clash, CoercionError, Dash, Hash, Mash, Rash, Trash

Constant Summary collapse

VERSION =
'5.0.0'.freeze

Class Method Summary collapse

Methods included from Extensions::SymbolizeKeys::ClassMethods

symbolize_keys, symbolize_keys!, symbolize_keys_recursively!

Methods included from Extensions::StringifyKeys::ClassMethods

stringify_keys, stringify_keys!, stringify_keys_recursively!

Class Method Details

.loggerLogger

The logger that Hashie uses for reporting errors.

Returns:

  • (Logger)

7
8
9
# File 'lib/hashie/logger.rb', line 7

def self.logger
  @logger ||= Logger.new(STDOUT)
end

.logger=(logger) ⇒ void

This method returns an undefined value.

Sets the logger that Hashie uses for reporting errors.

Parameters:

  • logger (Logger)

    The logger to set as Hashie's logger.


15
16
17
# File 'lib/hashie/logger.rb', line 15

def self.logger=(logger)
  @logger = logger
end