Module: Garcon::Extensions::MethodAccess
- Included in:
- StashCache
- Defined in:
- lib/garcon/core_ext/method_access.rb
Overview
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.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
145 146 147 148 149 |
# File 'lib/garcon/core_ext/method_access.rb', line 145 def self.included(base) [MethodReader, MethodWriter, MethodQuery].each do |mod| base.send :include, mod end end |