You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There were ~14 instances of `ClassName::class_method_name` in the _src,
but ~602 instances of `ClassName.class_method_name`.
Though using double colons is syntatically valid, it is less used in the
community compared to just using a period.
This PR just switches all the instances I found to use periods,
for consistency throughout the site.
Copy file name to clipboardExpand all lines: 2.4.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -347,7 +347,7 @@ When string is created for usage as a mutable buffer for some large textual data
347
347
348
348
***Reason:** Ruby's mutable strings, when used for sequential building of some large text, cause constant reallocations of bigger and bigger memory buffer. By specifying expected capacity beforehand, one can avoid this reallocations.
*_Standard library: methods of the class affected, but no documentation for the change:_ <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/stringio/rdoc/StringIO.html#method-i-gets"><code>StringIO#gets</code></a>, <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/stringio/rdoc/StringIO.html#method-i-each_line"><code>StringIO#each_line</code></a>, <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/stringio/rdoc/StringIO.html#method-i-readlines"><code>StringIO#readlines</code></a>
633
633
***Code:**
634
634
```ruby
@@ -727,9 +727,9 @@ Returns an actual name of the method being called, even if aliased.
727
727
## Stdlib[](#stdlib)
728
728
729
729
*`Set`: <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html#method-i-compare_by_identity"><code>#compare_by_identity</code></a> and <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html#method-i-compare_by_identity-3F"><code>#compare_by_identity?</code></a> methods added, behaving the same way as (existing since 1.9) <aclass="ruby-doc"href="https://ruby-doc.org/core-2.4.0/Hash.html#method-i-compare_by_identity"><code>Hash#compare_by_identity</code></a>: only elements being the same object (same `#object_id`) are considered same set element. Discussion: <aclass="tracker feature"href="https://bugs.ruby-lang.org/issues/12210">Feature #12210</a>
730
-
* <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/csv/rdoc/CSV.html#method-c-new"><code>CSV::new</code></a>: Add a `liberal_parsing` option, allowing to (try to) parse not-completely-valid CSV. Discussion: <aclass="tracker feature"href="https://bugs.ruby-lang.org/issues/11839">Feature #11839</a>
730
+
* <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/csv/rdoc/CSV.html#method-c-new"><code>CSV.new</code></a>: Add a `liberal_parsing` option, allowing to (try to) parse not-completely-valid CSV. Discussion: <aclass="tracker feature"href="https://bugs.ruby-lang.org/issues/11839">Feature #11839</a>
731
731
*`Binding#irb` start a REPL session like `binding.pry`.Follow-up: since [Ruby 2.5](https://rubyreferences.github.io/rubychanges/2.5.html#ruby-development-and-introspection), `require 'irb'` is not necessary for the feature to work, it is done automatically.
732
-
* <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html#method-c-new"><code>Logger::new</code></a> adds keyword arguments `level:`, `progname:`, `datetime_format:`, `formatter:`, `shift_period_suffix:`. The latter allows specifying suffix for filenames on log rotation. Discussions: <aclass="tracker feature"href="https://bugs.ruby-lang.org/issues/12224">Feature #12224</a> (keyword args), <aclass="tracker feature"href="https://bugs.ruby-lang.org/issues/10772">Feature #10772</a> (`shift_period_suffix`).
732
+
* <aclass="ruby-doc"href="https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html#method-c-new"><code>Logger.new</code></a> adds keyword arguments `level:`, `progname:`, `datetime_format:`, `formatter:`, `shift_period_suffix:`. The latter allows specifying suffix for filenames on log rotation. Discussions: <aclass="tracker feature"href="https://bugs.ruby-lang.org/issues/12224">Feature #12224</a> (keyword args), <aclass="tracker feature"href="https://bugs.ruby-lang.org/issues/10772">Feature #10772</a> (`shift_period_suffix`).
Copy file name to clipboardExpand all lines: 2.6.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -433,7 +433,7 @@ Several enumerators can now be chained into one with `Enumerator#+(other)` or `E
433
433
434
434
***Reason:** Since Ruby 2.5, these exception classes were "introspectable": when you catch them, you can fetch the object that caused the problem and (in case of `KeyError`) problematic key; but there were no way to add that helpful data when raising an exception in your own code.
Copy file name to clipboardExpand all lines: _src/2.4.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -347,7 +347,7 @@ When string is created for usage as a mutable buffer for some large textual data
347
347
348
348
***Reason:** Ruby's mutable strings, when used for sequential building of some large text, cause constant reallocations of bigger and bigger memory buffer. By specifying expected capacity beforehand, one can avoid this reallocations.
*_Standard library: methods of the class affected, but no documentation for the change:_[StringIO#gets](https://ruby-doc.org/stdlib-2.4.0/libdoc/stringio/rdoc/StringIO.html#method-i-gets), [StringIO#each_line](https://ruby-doc.org/stdlib-2.4.0/libdoc/stringio/rdoc/StringIO.html#method-i-each_line), [StringIO#readlines](https://ruby-doc.org/stdlib-2.4.0/libdoc/stringio/rdoc/StringIO.html#method-i-readlines)
633
633
***Code:**
634
634
```ruby
@@ -727,9 +727,9 @@ Returns an actual name of the method being called, even if aliased.
727
727
## Stdlib
728
728
729
729
*`Set`: [#compare_by_identity](https://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html#method-i-compare_by_identity) and [#compare_by_identity?](https://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html#method-i-compare_by_identity-3F) methods added, behaving the same way as (existing since 1.9) [Hash#compare_by_identity](https://ruby-doc.org/core-2.4.0/Hash.html#method-i-compare_by_identity): only elements being the same object (same `#object_id`) are considered same set element. Discussion: [Feature #12210](https://bugs.ruby-lang.org/issues/12210)
730
-
*[CSV::new](https://ruby-doc.org/stdlib-2.4.0/libdoc/csv/rdoc/CSV.html#method-c-new): Add a `liberal_parsing` option, allowing to (try to) parse not-completely-valid CSV. Discussion: [Feature #11839](https://bugs.ruby-lang.org/issues/11839)
730
+
*[CSV.new](https://ruby-doc.org/stdlib-2.4.0/libdoc/csv/rdoc/CSV.html#method-c-new): Add a `liberal_parsing` option, allowing to (try to) parse not-completely-valid CSV. Discussion: [Feature #11839](https://bugs.ruby-lang.org/issues/11839)
731
731
*`Binding#irb` start a REPL session like `binding.pry`.Follow-up: since [Ruby 2.5](https://rubyreferences.github.io/rubychanges/2.5.html#ruby-development-and-introspection), `require 'irb'` is not necessary for the feature to work, it is done automatically.
732
-
*[Logger::new](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html#method-c-new) adds keyword arguments `level:`, `progname:`, `datetime_format:`, `formatter:`, `shift_period_suffix:`. The latter allows specifying suffix for filenames on log rotation. Discussions: [Feature #12224](https://bugs.ruby-lang.org/issues/12224) (keyword args), [Feature #10772](https://bugs.ruby-lang.org/issues/10772) (`shift_period_suffix`).
732
+
*[Logger.new](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html#method-c-new) adds keyword arguments `level:`, `progname:`, `datetime_format:`, `formatter:`, `shift_period_suffix:`. The latter allows specifying suffix for filenames on log rotation. Discussions: [Feature #12224](https://bugs.ruby-lang.org/issues/12224) (keyword args), [Feature #10772](https://bugs.ruby-lang.org/issues/10772) (`shift_period_suffix`).
Copy file name to clipboardExpand all lines: _src/2.6.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -433,7 +433,7 @@ Several enumerators can now be chained into one with `Enumerator#+(other)` or `E
433
433
434
434
***Reason:** Since Ruby 2.5, these exception classes were "introspectable": when you catch them, you can fetch the object that caused the problem and (in case of `KeyError`) problematic key; but there were no way to add that helpful data when raising an exception in your own code.
***Documentation:**[NameError::new](https://ruby-doc.org/core-2.6/NameError.html#method-c-new), [NoMethodError::new](https://ruby-doc.org/core-2.6/NoMethodError.html#method-c-new)_(docs not updated)_, [KeyError::new](https://ruby-doc.org/core-2.6/KeyError.html#method-c-new)
436
+
***Documentation:**[NameError.new](https://ruby-doc.org/core-2.6/NameError.html#method-c-new), [NoMethodError.new](https://ruby-doc.org/core-2.6/NoMethodError.html#method-c-new)_(docs not updated)_, [KeyError.new](https://ruby-doc.org/core-2.6/KeyError.html#method-c-new)
Copy file name to clipboardExpand all lines: _src/evolution.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -427,7 +427,7 @@ Included in many classes to implement comparison methods. Once class defines a m
427
427
'Straße'.upcase # => 'STRASSE'
428
428
'İzmir'.upcase(:turkic) # => İZMİR -- locale-specific case conversion
429
429
```
430
-
* [2.4](2.4.md#stringnewcapacity-size) [String::new](https://ruby-doc.org/core-2.4.0/String.html#method-c-new): `capacity:` argument to pre-allocate memory if it is known the string will grow
430
+
* [2.4](2.4.md#stringnewcapacity-size) [String.new](https://ruby-doc.org/core-2.4.0/String.html#method-c-new): `capacity:` argument to pre-allocate memory if it is known the string will grow
431
431
* [2.4](2.4.md#casecmp) [String#casecmp?](https://ruby-doc.org/core-2.4.0/String.html#method-i-casecmp-3F), [Symbol#casecmp?](https://ruby-doc.org/core-2.4.0/Symbol.html#method-i-casecmp-3F) as a more expressive version of `#casecmp` when boolean value is needed (`#casecmp` returns `-1`/`0`/`1`):
432
432
```ruby
433
433
'FOO'.casecmp?('foo') # => true
@@ -470,7 +470,7 @@ Included in many classes to implement comparison methods. Once class defines a m
@@ -782,7 +782,7 @@ This section covers exception raising/handling behavior changes, as well as chan
782
782
* [2.6](2.6.md#else-in-exception-handling-context) `else` in exception-handling context without any `rescue` is prohibited.
783
783
* [2.6](2.6.md#numeric-methods-have-exception-argument) [#Integer()](https://ruby-doc.org/core-2.6/Kernel.html#method-i-Integer) and other similar conversion methods now have optional argument `exception: true/false`, defining whether to raise error on input that can't be converted or just return `nil`
* [2.6](2.6.md#new-arguments-receiver-and-key) New arguments: `receiver:` for [NameError::new](https://ruby-doc.org/core-2.6/NameError.html#method-c-new) and [NoMethodError::new](https://ruby-doc.org/core-2.6/NoMethodError.html#method-c-new); `key:` for [KeyError::new](https://ruby-doc.org/core-2.6/KeyError.html#method-c-new). It allows user code to construct errors with the same level of detail the language can.
785
+
* [2.6](2.6.md#new-arguments-receiver-and-key) New arguments: `receiver:` for [NameError.new](https://ruby-doc.org/core-2.6/NameError.html#method-c-new) and [NoMethodError.new](https://ruby-doc.org/core-2.6/NoMethodError.html#method-c-new); `key:` for [KeyError.new](https://ruby-doc.org/core-2.6/KeyError.html#method-c-new). It allows user code to construct errors with the same level of detail the language can.
786
786
* [2.6](2.6.md#exceptionfull_message-options) [Exception#full_message](https://ruby-doc.org/core-2.6/Exception.html#method-i-full_message): formatting options `highlight:` and `order:` added
* [3.1](3.1.md#threadbacktracelimit) [Thread::Backtrace.limit](https://docs.ruby-lang.org/en/3.1/Thread/Backtrace.html#method-c-limit) reader to get the maximum backtrace size set with `--backtrace-limit` command-line option
0 commit comments