module Hashie::Extensions::MethodAccessWithOverride

A macro module that will automatically include MethodReader, MethodOverridingWriter, and MethodQuery, giving you the ability to read, write, and query keys in a hash using method call shortcuts that can override object methods. Any overridden object method is automatically aliased with two leading underscores.

Public Class Methods

included(base) click to toggle source
# File lib/hashie/extensions/method_access.rb, line 227
def self.included(base)
  [MethodReader, MethodOverridingWriter, MethodQuery].each do |mod|
    base.send :include, mod
  end
end