module AccessibleHash
Constants
- VERSION
Public Instance Methods
method_missing(method_name, *args)
click to toggle source
Calls superclass method
# File lib/accessible_hash/refine.rb, line 3 def method_missing(method_name, *args) if method_name =~ /[a-zA-Z0-9]+=$/ self[method_name.to_s.delete('=').to_sym] = args.first elsif keys.include? method_name self[method_name] else super(method_name, *args) end end