module Hashie::Extensions::MethodAccess

A macro module that will automatically include MethodReader, MethodWriter, and MethodQuery, giving you the ability to read, write, and query keys in a hash using method call shortcuts.

Public Class Methods

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