diff options
Diffstat (limited to 'actionwebservice/lib/action_web_service/struct.rb')
-rw-r--r-- | actionwebservice/lib/action_web_service/struct.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionwebservice/lib/action_web_service/struct.rb b/actionwebservice/lib/action_web_service/struct.rb index f2bfba9e30..536207aa95 100644 --- a/actionwebservice/lib/action_web_service/struct.rb +++ b/actionwebservice/lib/action_web_service/struct.rb @@ -24,7 +24,7 @@ module ActionWebService # it can contain initial values for the structure member. def initialize(values={}) if values.is_a?(Hash) - values.map{|k,v| send('%s=' % k.to_s, v)} + values.map{|k,v| __send__('%s=' % k.to_s, v)} end end @@ -36,7 +36,7 @@ module ActionWebService # Iterates through each member def each_pair(&block) self.class.members.each do |name, type| - yield name, type + yield name, self.__send__(name) end end |