Skip to content

Commit

Permalink
Adopt rubocop suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Dec 29, 2023
1 parent 19a605a commit e98c0af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/ostruct-sanitizer/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ GEM
rexml

PLATFORMS
arm64-darwin-22
x86_64-linux

DEPENDENCIES
Expand Down
4 changes: 2 additions & 2 deletions packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e98c0af

Please sign in to comment.