c47a92b63d (master): [ruby/uri] Fix the message for unexpected argument

2 views
Skip to first unread message

Nobuyoshi Nakada

unread,
Jul 11, 2025, 11:05:37 PMJul 11
to ruby...@ruby-lang.org
Nobuyoshi Nakada 2025-07-12 03:02:37 +0000 (Sat, 12 Jul 2025)

New Revision: c47a92b63d

https://github.com/ruby/ruby/commit/c47a92b63d

Log:
[ruby/uri] Fix the message for unexpected argument

Use just `self` instead of `self.class`, in `URI::Generic.build`.
Since this is a class method, `self.class` is always `Class` even in
inherited sub classes, and does not have `#component` method.

https://github.com/ruby/uri/commit/6f44d3d40e

Modified files:
lib/uri/generic.rb
test/uri/test_generic.rb
Reply all
Reply to author
Forward
0 new messages