Skip to content

Commit

Permalink
Merge pull request #7 from okuramasafumi/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer authored Nov 25, 2023
2 parents 186a1e6 + a6ef6ef commit dba33a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class << klass
undef_method :define
end

args.map do |arg|
args.each do |arg|
if klass.method_defined?(arg)
raise ArgumentError, "duplicate member #{arg}"
end
Expand Down

0 comments on commit dba33a7

Please sign in to comment.