Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1529

Show
Ignore:
Timestamp:
05/05/05 10:53:41 (4 years ago)
Author:
nahi
Message:

define Object#instance_variable_get outside of SOAP module scope. it was not working as I expected. related to #95.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/soap.rb

    r1520 r1529  
    104104 
    105105 
    106 unless Object.respond_to?(:instance_variable_get) 
    107   class Object 
    108     def instance_variable_get(ivarname) 
    109       instance_eval(ivarname) 
    110     end 
    111  
    112     def instance_variable_set(ivarname, value) 
    113       instance_eval("#{ivarname} = value") 
    114     end 
    115   end 
    116 end 
    117  
    118  
    119106module Env 
    120107  def self.getenv(name) 
     
    129116 
    130117end 
     118 
     119 
     120unless Object.respond_to?(:instance_variable_get) 
     121  class Object 
     122    def instance_variable_get(ivarname) 
     123      instance_eval(ivarname) 
     124    end 
     125 
     126    def instance_variable_set(ivarname, value) 
     127      instance_eval("#{ivarname} = value") 
     128    end 
     129  end 
     130end