class HashWithIndifferentAccess
Monkey-patch AS/HWIA
Public Instance Methods
method_missing(method, *opts)
click to toggle source
# File lib/cute-hex.rb, line 8 def method_missing(method, *opts) case method when /\=$/ m = method.to_s.gsub(/\=$/, '') # strip assignment operator self[m] = opts.first return self else return self[method] end end