Sha256: 239820fd994a304ba28d2bb1584eba8fbbd0e55136dab778d417c38dc19f6c1f
Contents?: true
Size: 467 Bytes
Versions: 5
Compression:
Stored size: 467 Bytes
Contents
# a stand-in for a Savon Client, which does instance_eval with delegation # like the Savon Client class RequestProxy attr_accessor :soap attr_accessor :http def initialize @soap=Object.new @http=Object.new end def eval_with_delegation(&block) @self_before_instance_eval = eval "self", block.binding instance_eval &block end def method_missing(method, *args, &block) @self_before_instance_eval.send method, *args, &block end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rews-0.2.12 | spec/request_proxy.rb |
rews-0.2.11 | spec/request_proxy.rb |
rews-0.2.10 | spec/request_proxy.rb |
rews-0.2.9 | spec/request_proxy.rb |
rews-0.2.7 | spec/request_proxy.rb |