Method: Authorize::Redis::Base#method_missing
- Defined in:
- lib/authorize/redis/base.rb
#method_missing(m, *args, &block) ⇒ Object
147 148 149 150 151 |
# File 'lib/authorize/redis/base.rb', line 147 def method_missing(m, *args, &block) proxy = __getobj__ # Performance tweak return super unless proxy.respond_to?(m) # If there is going to be an explosion, let superclass handle it. proxy.freeze.__send__(m, *args, &block) # Ensure no state can be changed and send the method on its way. end |