Sha256: da6216f996b997bd3415a0d1244d727646a993e10f4dc613713227a62bd81055

Contents?: true

Size: 439 Bytes

Versions: 3

Compression:

Stored size: 439 Bytes

Contents

motion_require "module/delegation"

class NSDictionary
  def to_hash
    Hash.new.tap do |h|
      h.replace self
    end
  end
  
  delegate :symbolize_keys, :symbolize_keys!, :deep_symbolize_keys, :deep_symbolize_keys!,
    :stringify_keys, :stringify_keys!, :deep_stringify_keys!, :deep_stringify_keys,
    :deep_transform_keys, :deep_transform_keys!,
    :with_indifferent_access, :nested_under_indifferent_access, :to => :to_hash
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
motion-support-1.1.0 motion/core_ext/ns_dictionary.rb
motion-support-1.0.0 motion/core_ext/ns_dictionary.rb
motion-support-0.3.0 motion/core_ext/ns_dictionary.rb