lib/jubjub/response/proxy.rb
# Turn proxy class into a 'BasicObject'
Turn proxy class into a 'BasicObject'
Turn proxy class into a ' BasicObject '
def method_missing(name, *args, &block)
        if name.to_s != @primary_method && (proxy_primary.public_methods - Object.public_methods).map{|m| m.to_s }.include?( name.to_s )
          proxy_primary.send(name, *args, &block)
        else
          proxy_secondary.send(name, *args, &block)
        end
      end
def method_missing ( name , * args , & block ) if name . to_s != @primary_method && ( proxy_primary . public_methods - Object . public_methods ) . map { | m | m . to_s } . include? ( name . to_s ) proxy_primary . send ( name , * args , & block ) else proxy_secondary . send ( name , * args , & block ) end end
Turn proxy class into a 'BasicObject'
Turn proxy class into a ' BasicObject '
# If the method exists on the primary use that # unless it's the method name called to create the proxy from the primary, or is a standard object method # Else use a method on the secondary
name
<not_specific>
args
<not_specific>
block
<not_specific>