Class: Lumberjack::Tags
- Inherits:
-
Object
- Object
- Lumberjack::Tags
- Defined in:
- lib/lumberjack/tags.rb
Class Method Summary collapse
-
.expand_runtime_values(hash) ⇒ Hash
deprecated
Deprecated.
Use AttributesHelper.expand_runtime_values instead.
-
.stringify_keys(hash) ⇒ Hash
deprecated
Deprecated.
No longer supported
Class Method Details
.expand_runtime_values(hash) ⇒ Hash
Deprecated.
Use AttributesHelper.expand_runtime_values instead.
Alias to AttributesHelper.expand_runtime_values
29 30 31 32 33 |
# File 'lib/lumberjack/tags.rb', line 29 def (hash) Utils.deprecated("Lumberjack::Tags.expand_runtime_values", "Lumberjack::Tags.expand_runtime_values is deprecated and will be removed in version 2.1; use Lumberjack::AttributesHelper.expand_runtime_values instead.") do AttributesHelper.(hash) end end |
.stringify_keys(hash) ⇒ Hash
Deprecated.
No longer supported
Transform hash keys to strings. This method exists for optimization and backward compatibility. If a hash already has string keys, it will be returned as is.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lumberjack/tags.rb', line 12 def stringify_keys(hash) Utils.deprecated("Lumberjack::Tags.stringify_keys", "Lumberjack::Tags.stringify_keys is no longer supported and will be removed in version 2.1") do return nil if hash.nil? if hash.keys.all? { |key| key.is_a?(String) } hash else hash.transform_keys(&:to_s) end end end |