module StrongHash
Returns a StrongHash
instance which lets you fetch hash keys values by calling dot operator with key name
Constants
- VERSION
Public Class Methods
new(hash)
click to toggle source
# File lib/strong_hash.rb, line 6 def self.new(hash) hash = hash.dup hash.each do |key, val| next unless val.is_a?(Hash) hash[key] = new(val) end StrongHashFactory.new(hash) end