Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Common methods rdoc #49

Merged
merged 7 commits into from
Jan 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update lib/uri/common.rb
Co-authored-by: Peter Zhu <[email protected]>
BurdetteLamar and peterzhu2118 authored Jan 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 4090c73b68e04605f210c6690bdb4f3b03266e3a
2 changes: 1 addition & 1 deletion lib/uri/common.rb
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@ def self.scheme_list
# URI.for('https', *values)
# # => #<URI::HTTPS https://[email protected]:123/forum/questions/?tag=networking&order=newest#top>
# URI.for('foo', *values, default: URI::HTTP)
# # => #<URI::HTTP foo://[email protected]:123/forum/questions/?tag=networking&order=newest#top> #
# # => #<URI::HTTP foo://[email protected]:123/forum/questions/?tag=networking&order=newest#top>
#
def self.for(scheme, *arguments, default: Generic)
const_name = scheme.to_s.upcase