class StrongHash::StrongHashFactory
Public Class Methods
new(hash)
click to toggle source
# File lib/strong_hash.rb, line 16 def initialize(hash) @hash = ActiveSupport::HashWithIndifferentAccess.new(hash) end
Public Instance Methods
method_missing(method_name)
click to toggle source
# File lib/strong_hash.rb, line 20 def method_missing(method_name) raise NoMethodError unless @hash[method_name] @hash[method_name] end
respond_to_missing?(method_name, *args)
click to toggle source
Calls superclass method
# File lib/strong_hash.rb, line 25 def respond_to_missing?(method_name, *args) super || @hash.respond_to?(method_name) end