summaryrefslogtreecommitdiff
path: root/spec/ruby/library/bigdecimal/exponent_spec.rb
diff options
context:
space:
mode:
authorMasafumi Koba <473530+ybiquitous@users.noreply.github.com>2026-01-16 18:23:21 +0900
committergit <svn-admin@ruby-lang.org>2026-01-29 06:09:25 +0000
commit6f16e87ff06c412edc0cac334b3c078aa0fafa22 (patch)
treec9d9b332ca31f5e2e7c95aed4144220ac9802871 /spec/ruby/library/bigdecimal/exponent_spec.rb
parent40e3e43b9380aa339b16471c7e9d9de6894f5ab3 (diff)
[ruby/open-uri] Improve URI.open documentation with usage exampleHEADmaster
This improves the `URI.open` method documentation by adding a code example requiring `open-uri` as a basic usage. When reading the current documentation first, I didn't realize that `open-uri` was required to call the method. I believe the improved version could be more helpful for new users. ```sh-session $ ruby -r uri -e 'p URI.open("http://example.com")' -e:1:in '<main>': private method 'open' called for module URI (NoMethodError) ``` Ref https://docs.ruby-lang.org/en/master/URI.html#method-c-open Also, this improves formatting with code fonts for better readability. https://github.com/ruby/open-uri/commit/f4400edc27
Diffstat (limited to 'spec/ruby/library/bigdecimal/exponent_spec.rb')
0 files changed, 0 insertions, 0 deletions