diff --git a/packages/ostruct-sanitizer/Gemfile.lock b/packages/ostruct-sanitizer/Gemfile.lock index 60ef19c5..916827d4 100644 --- a/packages/ostruct-sanitizer/Gemfile.lock +++ b/packages/ostruct-sanitizer/Gemfile.lock @@ -111,6 +111,7 @@ GEM rexml PLATFORMS + arm64-darwin-22 x86_64-linux DEPENDENCIES diff --git a/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb b/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb index 8957aba5..7d5226f3 100644 --- a/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb +++ b/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb @@ -62,7 +62,7 @@ def method_missing(method, *args) # @param [Any] value the attribute's value # def []=(name, value) - send("#{name}=", value) + send(:"#{name}=", value) end private @@ -72,7 +72,7 @@ def setter?(method) end def override_setter_for(field) - define_singleton_method("#{field}=") do |value| + define_singleton_method(:"#{field}=") do |value| @table[field] = sanitize(field, value) end end