From 80221277131646467072880abf3b5b70df7709b6 Mon Sep 17 00:00:00 2001 From: meatball Date: Wed, 31 Dec 2025 19:05:45 +0100 Subject: [PATCH] Update links --- concepts/arrays/about.md | 2 +- concepts/arrays/introduction.md | 2 +- concepts/arrays/links.json | 2 +- concepts/basics/about.md | 2 +- concepts/basics/links.json | 2 +- concepts/enumeration/about.md | 4 +++- concepts/floating-point-numbers/about.md | 3 ++- concepts/floating-point-numbers/introduction.md | 4 +++- concepts/floating-point-numbers/links.json | 2 +- concepts/loops/about.md | 3 --- concepts/modules/about.md | 2 +- .../multiple-assignment-and-decomposition/about.md | 8 ++++---- .../introduction.md | 2 +- concepts/numbers/about.md | 4 ++-- concepts/numbers/links.json | 4 ++-- concepts/ranges/about.md | 8 ++++---- concepts/ranges/introduction.md | 9 +++++---- concepts/ranges/links.json | 4 ++-- concepts/strings/about.md | 2 +- concepts/strings/links.json | 2 +- concepts/symbols/about.md | 8 ++++---- concepts/symbols/introduction.md | 2 +- concepts/symbols/links.json | 4 ++-- exercises/concept/assembly-line/.docs/hints.md | 4 ++-- exercises/concept/assembly-line/.meta/design.md | 4 ++-- exercises/concept/bird-count/.docs/hints.md | 12 ++++++------ exercises/concept/blackjack/.docs/hints.md | 2 +- exercises/concept/chess-game/.docs/hints.md | 12 ++++++------ exercises/concept/chess-game/.docs/introduction.md | 8 ++++---- exercises/concept/lasagna/.docs/hints.md | 2 +- .../locomotive-engineer/.docs/introduction.md | 8 ++++---- exercises/concept/log-line-parser/.docs/hints.md | 6 +++--- .../concept/log-line-parser/.docs/introduction.md | 2 +- exercises/concept/log-line-parser/.meta/design.md | 2 +- exercises/concept/moviegoer/.docs/hints.md | 10 +++++----- exercises/concept/port-palermo/.docs/hints.md | 8 ++++---- exercises/concept/port-palermo/.docs/introduction.md | 2 +- exercises/concept/savings-account/.meta/design.md | 2 +- .../practice/accumulate/.docs/instructions.append.md | 4 +++- .../high-scores/.docs/instructions.append.md | 7 +++++-- exercises/practice/knapsack/.docs/hints.md | 3 ++- .../.docs/instructions.append.md | 2 +- .../practice/series/.docs/instructions.append.md | 7 +++++-- reference/exercise-concepts/nucleotide-count.md | 2 +- 44 files changed, 103 insertions(+), 91 deletions(-) diff --git a/concepts/arrays/about.md b/concepts/arrays/about.md index 00f6a45125..f788003a70 100644 --- a/concepts/arrays/about.md +++ b/concepts/arrays/about.md @@ -52,5 +52,5 @@ a # => [{"cat"=>"feline"}, {}] Another characteristic of Ruby arrays is that they mix in the [Enumerable][enumerable-module] module, which adds a lot of handy methods to iterate, search, sort, filter, etc. elements of an array. -[enumerable-module]: https://ruby-doc.org/core-2.7.1/Enumerable.html +[enumerable-module]: https://docs.ruby-lang.org/en/master/Enumerable.html [for-loop]: https://launchschool.com/books/ruby/read/loops_iterators#forloops diff --git a/concepts/arrays/introduction.md b/concepts/arrays/introduction.md index 48eed3983e..83faff18c3 100644 --- a/concepts/arrays/introduction.md +++ b/concepts/arrays/introduction.md @@ -83,4 +83,4 @@ arr.pop #=> 6 arr #=> [1, 2, 3, 4, 5] ``` -[enumerable-module]: https://ruby-doc.org/core-2.7.1/Enumerable.html +[enumerable-module]: https://docs.ruby-lang.org/en/master/Enumerable.html diff --git a/concepts/arrays/links.json b/concepts/arrays/links.json index 4dc034f96c..3e073097cb 100644 --- a/concepts/arrays/links.json +++ b/concepts/arrays/links.json @@ -1,6 +1,6 @@ [ { - "url": "https://ruby-doc.org/core-2.7.1/Enumerable.html", + "url": "https://docs.ruby-lang.org/en/master/Enumerable.html", "description": "enumerable-module" } ] diff --git a/concepts/basics/about.md b/concepts/basics/about.md index 6777d50f44..7eb2ad5ef4 100644 --- a/concepts/basics/about.md +++ b/concepts/basics/about.md @@ -45,7 +45,7 @@ Car.new.run Finally, bear in mind that the `Integer` object holds values that may be defined as one or more (consecutive) digits and its methods support many of the [mathematical operators][integers-docs]. -[integers-docs]: https://ruby-doc.org/core-2.7.0/Integer.html +[integers-docs]: https://docs.ruby-lang.org/en/master/Integer.html ~~~~exercism/note The communication in documentation often will reference instance methods using syntax like `Class#method_name` while class or module level methods are referenced as `Class::method_name`. diff --git a/concepts/basics/links.json b/concepts/basics/links.json index 3672d2c252..d9e4733a9a 100644 --- a/concepts/basics/links.json +++ b/concepts/basics/links.json @@ -1,6 +1,6 @@ [ { - "url": "https://ruby-doc.org/core-2.7.0/Integer.html", + "url": "https://docs.ruby-lang.org/en/master/Integer.html", "description": "integers-docs" } ] diff --git a/concepts/enumeration/about.md b/concepts/enumeration/about.md index a8915329ba..604b805d13 100644 --- a/concepts/enumeration/about.md +++ b/concepts/enumeration/about.md @@ -49,4 +49,6 @@ words.each { |animal, name| ... } words.each.with_index { |(animal, name), index| ... } ``` -The methods described above are part of the [`Enumerable` module](https://ruby-doc.org/core-2.7.1/Enumerable.html) which is included in `Array`, `Hash` and other classes that require the ability to enumerate. +The methods described above are part of the [`Enumerable` module][enumerable-module] which is included in `Array`, `Hash` and other classes that require the ability to enumerate. + +[enumerable-module]: https://docs.ruby-lang.org/en/master/Enumerable.html \ No newline at end of file diff --git a/concepts/floating-point-numbers/about.md b/concepts/floating-point-numbers/about.md index 1a8b9d0a61..7ce8634534 100644 --- a/concepts/floating-point-numbers/about.md +++ b/concepts/floating-point-numbers/about.md @@ -1,6 +1,6 @@ # About -A floating-point number is a number with zero or more digits behind the decimal separator. Examples are `4.0`, `0.1`, `3.14`, `-6.4` `16.984025` and `1024.0`. In Ruby, floating-point numbers are implemented through the [Float](https://ruby-doc.org/core-2.7.0/Float.html) class. +A floating-point number is a number with zero or more digits behind the decimal separator. Examples are `4.0`, `0.1`, `3.14`, `-6.4` `16.984025` and `1024.0`. In Ruby, floating-point numbers are implemented through the [Float][Float] class. You can find a short introduction to floating-point numbers at [0.30000000000000004.com][0.30000000000000004.com]. @@ -51,5 +51,6 @@ end As you have probably noticed, Ruby has no increment operator (`i++`) like some other languages do. Instead, constructs like `i += 1` (which is equal to `i = i + 1`) can be used. +[Float]: https://docs.ruby-lang.org/en/master/Float.html [0.30000000000000004.com]: https://0.30000000000000004.com/ [evanw.github.io-float-toy]: https://evanw.github.io/float-toy/ diff --git a/concepts/floating-point-numbers/introduction.md b/concepts/floating-point-numbers/introduction.md index 7c088be581..cbf3e74bdb 100644 --- a/concepts/floating-point-numbers/introduction.md +++ b/concepts/floating-point-numbers/introduction.md @@ -1,4 +1,6 @@ # Loops A floating-point number is a number with zero or more digits behind the decimal separator. Examples are `4.0`, `0.1`, `3.14`, `-6.4` `16.984025` and `1024.0`. -In Ruby, floating-point numbers are implemented through the [Float](https://ruby-doc.org/core-2.7.0/Float.html) class. +In Ruby, floating-point numbers are implemented through the [Float][Float] class. + +[Float]: https://docs.ruby-lang.org/en/master/Float.html diff --git a/concepts/floating-point-numbers/links.json b/concepts/floating-point-numbers/links.json index 20dc68f0a4..af25bbb218 100644 --- a/concepts/floating-point-numbers/links.json +++ b/concepts/floating-point-numbers/links.json @@ -1,6 +1,6 @@ [ { - "url": "https://ruby-doc.org/core-2.7.0/Float.html", + "url": "https://docs.ruby-lang.org/en/master/Float.html", "description": "Float" }, { diff --git a/concepts/loops/about.md b/concepts/loops/about.md index 62f6bfa823..e53ff28ac4 100644 --- a/concepts/loops/about.md +++ b/concepts/loops/about.md @@ -40,6 +40,3 @@ end ``` As you have probably noticed, Ruby has no increment operator (`i++`) like some other languages do. Instead, constructs like `i += 1` (which is equal to `i = i + 1`) can be used. - -[0.30000000000000004.com]: https://0.30000000000000004.com/ -[evanw.github.io-float-toy]: https://evanw.github.io/float-toy/ diff --git a/concepts/modules/about.md b/concepts/modules/about.md index 5e607040fa..a23ede2ac3 100644 --- a/concepts/modules/about.md +++ b/concepts/modules/about.md @@ -15,4 +15,4 @@ module Speaker end Speaker.echo("Hello") #=> "Hello ... Hello" -``` \ No newline at end of file +``` diff --git a/concepts/multiple-assignment-and-decomposition/about.md b/concepts/multiple-assignment-and-decomposition/about.md index 3cc4e313ea..a62c8204cc 100644 --- a/concepts/multiple-assignment-and-decomposition/about.md +++ b/concepts/multiple-assignment-and-decomposition/about.md @@ -431,9 +431,9 @@ my_method(**numbers) 1 ``` -[arguments]: https://docs.ruby-lang.org/en/3.1/syntax/methods_rdoc.html#label-Array-2FHash+Argument -[keyword arguments]: https://docs.ruby-lang.org/en/3.1/syntax/methods_rdoc.html#label-Keyword+Arguments -[multiple assignment]: https://docs.ruby-lang.org/en/3.1/syntax/assignment_rdoc.html#label-Multiple+Assignment +[arguments]: https://docs.ruby-lang.org/en/master/syntax/methods_rdoc.html#label-Array-2FHash+Argument +[keyword arguments]: https://docs.ruby-lang.org/en/maste/syntax/methods_rdoc.html#label-Keyword+Arguments +[multiple assignment]: https://docs.ruby-lang.org/en/master/syntax/assignment_rdoc.html#label-Multiple+Assignment [sorting algorithms]: https://en.wikipedia.org/wiki/Sorting_algorithm -[decompose]: https://docs.ruby-lang.org/en/3.1/syntax/assignment_rdoc.html#label-Array+Decomposition +[decompose]: https://docs.ruby-lang.org/en/master/syntax/assignment_rdoc.html#label-Array+Decomposition [delimited decomposition expression]: https://riptutorial.com/ruby/example/8798/decomposition diff --git a/concepts/multiple-assignment-and-decomposition/introduction.md b/concepts/multiple-assignment-and-decomposition/introduction.md index feb94349cd..20bb53886d 100644 --- a/concepts/multiple-assignment-and-decomposition/introduction.md +++ b/concepts/multiple-assignment-and-decomposition/introduction.md @@ -22,4 +22,4 @@ You will often see these arguments defined as `def some_method(*args, **kwargs)` While `*` and `**` are used for multiplication and exponentiation, respectively, `*` and `**` are used as composition and decomposition operators. ~~~~ -[multiple assignment]: https://docs.ruby-lang.org/en/3.1/syntax/assignment_rdoc.html#label-Multiple+Assignment +[multiple assignment]: https://docs.ruby-lang.org/en/master/syntax/assignment_rdoc.html#label-Multiple+Assignment diff --git a/concepts/numbers/about.md b/concepts/numbers/about.md index 291ebc0b33..40e5643a33 100644 --- a/concepts/numbers/about.md +++ b/concepts/numbers/about.md @@ -79,5 +79,5 @@ The same problem can sometimes be solved using different types of conditional st [arithmetic-operators]: https://www.tutorialspoint.com/ruby/ruby_operators.htm [comparison-operators]: https://www.w3resource.com/ruby/ruby-comparison-operators.php [if-else-unless]: https://www.w3resource.com/ruby/ruby-if-else-unless.php -[integer-ruby]: https://ruby-doc.org/core-2.7.1/Integer.html -[float-ruby]: https://ruby-doc.org/core-2.7.1/Float.html +[integer-ruby]: https://docs.ruby-lang.org/en/master/Integer.html +[float-ruby]: https://docs.ruby-lang.org/en/master/Float.html diff --git a/concepts/numbers/links.json b/concepts/numbers/links.json index a58c1c1b77..9eeba262e1 100644 --- a/concepts/numbers/links.json +++ b/concepts/numbers/links.json @@ -1,10 +1,10 @@ [ { - "url": "https://ruby-doc.org/core-2.7.1/Integer.html", + "url": "https://docs.ruby-lang.org/en/master/Integer.html", "description": "integer-ruby" }, { - "url": "https://ruby-doc.org/core-2.7.1/Float.html", + "url": "https://docs.ruby-lang.org/en/master/Float.html", "description": "float-ruby" }, { diff --git a/concepts/ranges/about.md b/concepts/ranges/about.md index bdc57154ee..ac61e0a899 100644 --- a/concepts/ranges/about.md +++ b/concepts/ranges/about.md @@ -121,7 +121,7 @@ end ``` ~~~~ -[range]: https://rubyapi.org/o/range -[sum]: https://rubyapi.org/o/enumerable#method-i-sum -[size]: https://rubyapi.org/o/range#method-i-size -[indlude]: https://rubyapi.org/o/range#method-i-include-3F +[range]: https://docs.ruby-lang.org/en/master/Range.html +[sum]: https://docs.ruby-lang.org/en/master/Enumerable.html#method-i-sum +[size]: https://docs.ruby-lang.org/en/master/Range.html#method-i-size +[indlude]: https://docs.ruby-lang.org/en/master/Range.html#method-i-include-3F diff --git a/concepts/ranges/introduction.md b/concepts/ranges/introduction.md index 7558590bb2..53b47cc915 100644 --- a/concepts/ranges/introduction.md +++ b/concepts/ranges/introduction.md @@ -85,7 +85,8 @@ Its behavior can be a bit unexpected when using certain strings, so use it with "aa".."az".to_a # => ["aa", "ab", "ac", ..., "az"] ``` -[range]: https://rubyapi.org/o/range -[sum]: https://rubyapi.org/o/enumerable#method-i-sum -[size]: https://rubyapi.org/o/range#method-i-size -[indlude]: https://rubyapi.org/o/range#method-i-include-3F +[range]: https://docs.ruby-lang.org/en/master/Range.html +[sum]: https://docs.ruby-lang.org/en/master/Enumerable.html#method-i-sum +[size]: https://docs.ruby-lang.org/en/master/Range.html#method-i-size +[indlude]: https://docs.ruby-lang.org/en/master/Range.html#method-i-include-3F + diff --git a/concepts/ranges/links.json b/concepts/ranges/links.json index 93ee3102a9..879d808914 100644 --- a/concepts/ranges/links.json +++ b/concepts/ranges/links.json @@ -4,8 +4,8 @@ "description": "Ruby Guides: Ruby Ranges: How Do They Work?" }, { - "url": "https://rubyapi.org/o/range", - "description": "Ruby api: Ranges" + "url": "https://docs.ruby-lang.org/en/master/Range.html", + "description": "Ruby docs: Ranges" } ] \ No newline at end of file diff --git a/concepts/strings/about.md b/concepts/strings/about.md index 42363038b1..323925bf3e 100644 --- a/concepts/strings/about.md +++ b/concepts/strings/about.md @@ -7,5 +7,5 @@ It's also worth knowing that strings can be created using single quotes (`'`) or You can also create strings using the [heredoc syntax][ruby-heredoc] or using the `%q` and `%Q` helpers. [ruby-for-beginners.rubymonstas.org-interpolation]: http://ruby-for-beginners.rubymonstas.org/bonus/string_interpolation.html -[ruby-doc.org-string]: https://ruby-doc.org/core-2.7.0/String.html +[ruby-doc.org-string]: https://docs.ruby-lang.org/en/master/String.html [ruby-heredoc]: https://www.rubyguides.com/2018/11/ruby-heredoc/ diff --git a/concepts/strings/links.json b/concepts/strings/links.json index 55b943ee3c..f351dd449e 100644 --- a/concepts/strings/links.json +++ b/concepts/strings/links.json @@ -1,6 +1,6 @@ [ { - "url": "https://ruby-doc.org/core-2.7.0/String.html", + "url": "https://docs.ruby-lang.org/en/master/String.html", "description": "ruby-doc.org-string" }, { diff --git a/concepts/symbols/about.md b/concepts/symbols/about.md index 075caadfb9..c141aba31f 100644 --- a/concepts/symbols/about.md +++ b/concepts/symbols/about.md @@ -72,9 +72,9 @@ Foo.instance_methods # => [:baz] local_variables # => [:a] ``` -All methods can be found in the [Kernel API][kernal-api] and [Module API][module-api]. +All methods can be found in the [Kernel API][kernel-api] and [Module API][module-api]. [symbols]: https://www.rubyguides.com/2018/02/ruby-symbols/ -[symbols-api]: https://rubyapi.org/o/symbol -[kernal-api]: https://rubyapi.org/o/kernel -[module-api]: https://rubyapi.org/o/module +[symbols-api]: https://docs.ruby-lang.org/en/master/Symbol.html +[kernel-api]: https://docs.ruby-lang.org/en/master/Kernel.html +[module-api]: https://docs.ruby-lang.org/en/master/Module.html diff --git a/concepts/symbols/introduction.md b/concepts/symbols/introduction.md index f48acffebe..83aed02f9e 100644 --- a/concepts/symbols/introduction.md +++ b/concepts/symbols/introduction.md @@ -52,4 +52,4 @@ Due to symbols having a limited set of methods, it can be useful to convert a sy ``` [symbols]: https://www.rubyguides.com/2018/02/ruby-symbols/ -[symbols-api]: https://rubyapi.org/o/symbol +[symbols-api]: https://docs.ruby-lang.org/en/master/Symbol.html diff --git a/concepts/symbols/links.json b/concepts/symbols/links.json index 51a834a212..05771f9125 100644 --- a/concepts/symbols/links.json +++ b/concepts/symbols/links.json @@ -4,7 +4,7 @@ "description": "Ruby Guides: Ruby Symbols" }, { - "url": "https://rubyapi.org/symbol/", - "description": "Ruby API: Symbol" + "url": "https://docs.ruby-lang.org/en/master/Symbol.html", + "description": "Ruby docs: Symbol" } ] diff --git a/exercises/concept/assembly-line/.docs/hints.md b/exercises/concept/assembly-line/.docs/hints.md index ffcf98d062..33fc5f51e8 100644 --- a/exercises/concept/assembly-line/.docs/hints.md +++ b/exercises/concept/assembly-line/.docs/hints.md @@ -15,5 +15,5 @@ [comparison-operators]: https://www.w3resource.com/ruby/ruby-comparison-operators.php [if-else-unless]: https://www.w3resource.com/ruby/ruby-if-else-unless.php -[to_f]: https://apidock.com/ruby/v2_6_3/Integer/to_f -[to_i]: https://apidock.com/ruby/Float/to_i +[to_f]: https://docs.ruby-lang.org/en/master/Integer.html#method-i-to_f +[to_i]: https://docs.ruby-lang.org/en/master/Float.html#method-i-to_i \ No newline at end of file diff --git a/exercises/concept/assembly-line/.meta/design.md b/exercises/concept/assembly-line/.meta/design.md index ae28ce4c97..4ff398fa1c 100644 --- a/exercises/concept/assembly-line/.meta/design.md +++ b/exercises/concept/assembly-line/.meta/design.md @@ -38,7 +38,7 @@ This exercise does not require any specific representation logic to be added to This exercise does not require any specific logic to be added to the [analyzer][analyzer]. -[integer-ruby]: https://ruby-doc.org/core-2.7.1/Integer.html -[float-ruby]: https://ruby-doc.org/core-2.7.1/Float.html +[integer-ruby]: https://docs.ruby-lang.org/en/master/Integer.html +[float-ruby]: https://docs.ruby-lang.org/en/master/Float.html [analyzer]: https://github.com/exercism/ruby-analyzer [representer]: https://github.com/exercism/ruby-representer diff --git a/exercises/concept/bird-count/.docs/hints.md b/exercises/concept/bird-count/.docs/hints.md index 95e66b0ff7..e1c2fc7605 100644 --- a/exercises/concept/bird-count/.docs/hints.md +++ b/exercises/concept/bird-count/.docs/hints.md @@ -29,9 +29,9 @@ [instance-variables]: http://ruby-for-beginners.rubymonstas.org/writing_classes/instance_variables.html [class-method]: http://www.rubyfleebie.com/2007/04/09/understanding-class-methods-in-ruby/ -[array-definition]: https://ruby-doc.org/core-2.7.0/Array.html#class-Array-label-Creating+Arrays -[array-length]: https://ruby-doc.org/core-2.7.0/Array.html#class-Array-label-Obtaining+Information+about+an+Array -[array-sum]: https://ruby-doc.org/core-2.7.0/Array.html#method-i-sum -[array-count]: https://ruby-doc.org/core-2.7.0/Array.html#method-i-count -[enumerable-any]: https://ruby-doc.org/core-2.7.0/Enumerable.html#method-i-any-3F -[enumerable-all]: https://ruby-doc.org/core-2.7.0/Enumerable.html#method-i-all-3F +[array-definition]: https://docs.ruby-lang.org/en/master/Array.html#class-Array-label-Creating+Arrays +[array-length]: https://docs.ruby-lang.org/en/master/Array.html#class-Array-label-Obtaining+Information+about+an+Array +[array-sum]: https://docs.ruby-lang.org/en/master/Array.html#method-i-sum +[array-count]: https://docs.ruby-lang.org/en/master/Array.html#method-i-count +[enumerable-any]: https://docs.ruby-lang.org/en/master/Enumerable.html#method-i-any-3F +[enumerable-all]: https://docs.ruby-lang.org/en/master/Enumerable.html#method-i-all-3F diff --git a/exercises/concept/blackjack/.docs/hints.md b/exercises/concept/blackjack/.docs/hints.md index 1726839544..170aef627e 100644 --- a/exercises/concept/blackjack/.docs/hints.md +++ b/exercises/concept/blackjack/.docs/hints.md @@ -25,4 +25,4 @@ all (or some) of these categories. [case]: https://www.rubyguides.com/2015/10/ruby-case/ -[range]: https://rubyapi.org/o/range +[range]: https://docs.ruby-lang.org/en/master/Range.html diff --git a/exercises/concept/chess-game/.docs/hints.md b/exercises/concept/chess-game/.docs/hints.md index 6afc40f8bb..68062271d4 100644 --- a/exercises/concept/chess-game/.docs/hints.md +++ b/exercises/concept/chess-game/.docs/hints.md @@ -23,9 +23,9 @@ - You can use already defined methods to get the nickname of the player and to check if the move is valid. [constants]: https://www.rubyguides.com/2017/07/ruby-constants/ -[integers]: https://rubyapi.org/o/integer -[string]: https://rubyapi.org/o/string -[module]: https://rubyapi.org/o/module -[include]: https://rubyapi.org/o/range#method-i-include-3F -[range]: https://rubyapi.org/o/range -[upcase]: https://rubyapi.org/o/string#method-i-upcase +[integers]: https://docs.ruby-lang.org/en/master/Integer.html +[string]: https://docs.ruby-lang.org/en/master/String.html +[module]: https://docs.ruby-lang.org/en/master/Module.html +[include]: https://docs.ruby-lang.org/en/master/Range.html#method-i-include-3F +[range]: https://docs.ruby-lang.org/en/master/Range.html +[upcase]: https://docs.ruby-lang.org/en/master/String.html#method-i-upcase diff --git a/exercises/concept/chess-game/.docs/introduction.md b/exercises/concept/chess-game/.docs/introduction.md index 38fa606d38..6cafca3d12 100644 --- a/exercises/concept/chess-game/.docs/introduction.md +++ b/exercises/concept/chess-game/.docs/introduction.md @@ -85,7 +85,7 @@ Its behavior can be a bit unexpected when using certain strings, so use it with ("aa".."az").to_a # => ["aa", "ab", "ac", ..., "az"] ``` -[range]: https://rubyapi.org/o/range -[sum]: https://rubyapi.org/o/enumerable#method-i-sum -[size]: https://rubyapi.org/o/range#method-i-size -[indlude]: https://rubyapi.org/o/range#method-i-include-3F +[range]: https://docs.ruby-lang.org/en/master/Range.html +[sum]: https://docs.ruby-lang.org/en/master/Enumerable.html#method-i-sum +[size]: https://docs.ruby-lang.org/en/master/Range.html#method-i-size +[indlude]: https://docs.ruby-lang.org/en/master/Range.html#method-i-include-3F diff --git a/exercises/concept/lasagna/.docs/hints.md b/exercises/concept/lasagna/.docs/hints.md index fe4f6b482b..f4210b0776 100644 --- a/exercises/concept/lasagna/.docs/hints.md +++ b/exercises/concept/lasagna/.docs/hints.md @@ -30,4 +30,4 @@ [operators]: https://www.w3resource.com/ruby/ruby-arithmetic-operators.php [constants]: https://www.rubyguides.com/2017/07/ruby-constants/ [invocation]: http://ruby-for-beginners.rubymonstas.org/objects/calling.html -[integers]: https://ruby-doc.org/core-2.7.0/Integer.html +[integers]: https://docs.ruby-lang.org/en/master/Integer.html diff --git a/exercises/concept/locomotive-engineer/.docs/introduction.md b/exercises/concept/locomotive-engineer/.docs/introduction.md index 2a03ce27ed..e1defc714e 100644 --- a/exercises/concept/locomotive-engineer/.docs/introduction.md +++ b/exercises/concept/locomotive-engineer/.docs/introduction.md @@ -413,9 +413,9 @@ my_method(**numbers) 1 ``` -[arguments]: https://docs.ruby-lang.org/en/3.1/syntax/methods_rdoc.html#label-Array-2FHash+Argument -[keyword arguments]: https://docs.ruby-lang.org/en/3.1/syntax/methods_rdoc.html#label-Keyword+Arguments -[multiple assignment]: https://docs.ruby-lang.org/en/3.1/syntax/assignment_rdoc.html#label-Multiple+Assignment +[arguments]: https://docs.ruby-lang.org/en/master/syntax/methods_rdoc.html#label-Array-2FHash+Argument +[keyword arguments]: https://docs.ruby-lang.org/en/master/syntax/methods_rdoc.html#label-Keyword+Arguments +[multiple assignment]: https://docs.ruby-lang.org/en/master/syntax/assignment_rdoc.html#label-Multiple+Assignment [sorting algorithms]: https://en.wikipedia.org/wiki/Sorting_algorithm -[decompose]: https://docs.ruby-lang.org/en/3.1/syntax/assignment_rdoc.html#label-Array+Decomposition +[decompose]: https://docs.ruby-lang.org/en/master/syntax/assignment_rdoc.html#label-Array+Decomposition [delimited decomposition expression]: https://riptutorial.com/ruby/example/8798/decomposition diff --git a/exercises/concept/log-line-parser/.docs/hints.md b/exercises/concept/log-line-parser/.docs/hints.md index b3f946fdef..6824803bb1 100644 --- a/exercises/concept/log-line-parser/.docs/hints.md +++ b/exercises/concept/log-line-parser/.docs/hints.md @@ -20,6 +20,6 @@ [ruby-for-beginners.rubymonstas.org-strings]: http://ruby-for-beginners.rubymonstas.org/built_in_classes/strings.html [ruby-for-beginners.rubymonstas.org-interpolation]: http://ruby-for-beginners.rubymonstas.org/bonus/string_interpolation.html -[docs-string-methods]: https://ruby-doc.org/core-2.7.0/String.html -[strip-white-space]: https://ruby-doc.org/core-2.7.0/String.html#method-i-strip -[downcase]: https://ruby-doc.org/core-2.7.0/String.html#method-i-downcase +[docs-string-methods]: https://docs.ruby-lang.org/en/master/String.html +[strip-white-space]: https://docs.ruby-lang.org/en/master/String.html#method-i-strip +[downcase]: https://docs.ruby-lang.org/en/master/String.html#method-i-downcase diff --git a/exercises/concept/log-line-parser/.docs/introduction.md b/exercises/concept/log-line-parser/.docs/introduction.md index 65dcffbbb8..ccc6113ba0 100644 --- a/exercises/concept/log-line-parser/.docs/introduction.md +++ b/exercises/concept/log-line-parser/.docs/introduction.md @@ -89,4 +89,4 @@ my_string.capitalize! #=> "Hello" puts my_string #=> "Hello" ``` -[docs-string]: https://ruby-doc.org/core-2.7.0/String.html +[docs-string]: https://docs.ruby-lang.org/en/master/String.html diff --git a/exercises/concept/log-line-parser/.meta/design.md b/exercises/concept/log-line-parser/.meta/design.md index b30bb182e7..9b69cf31ca 100644 --- a/exercises/concept/log-line-parser/.meta/design.md +++ b/exercises/concept/log-line-parser/.meta/design.md @@ -37,4 +37,4 @@ This exercise does not require any specific logic to be added to the [analyzer][ [analyzer]: https://github.com/exercism/ruby-analyzer [representer]: https://github.com/exercism/ruby-representer -[ruby-doc.org-string]: https://ruby-doc.org/core-2.7.0/String.html +[ruby-doc.org-string]: https://docs.ruby-lang.org/en/master/String.html diff --git a/exercises/concept/moviegoer/.docs/hints.md b/exercises/concept/moviegoer/.docs/hints.md index a3367eec00..f1a6c5e7c8 100644 --- a/exercises/concept/moviegoer/.docs/hints.md +++ b/exercises/concept/moviegoer/.docs/hints.md @@ -13,8 +13,8 @@ - Use one of the conditionals [`if`][doc-if]/[`unless`][doc-unless] to check if a moviegoer is entitled to free popcorn. - Use [`raise`][doc-raise]. -[doc-ternary]: https://ruby-doc.org/core-2.7.1/doc/syntax/control_expressions_rdoc.html#label-Ternary+if -[doc-if]: https://ruby-doc.org/core-2.7.2/doc/syntax/control_expressions_rdoc.html#label-if+Expression -[doc-unless]: https://ruby-doc.org/core-2.7.2/doc/syntax/control_expressions_rdoc.html#label-unless+Expression -[doc-raise]: https://ruby-doc.org/core-2.7.1/Kernel.html#method-i-raise -[doc-integer-gtoe]: https://ruby-doc.org/core-2.7.1/Integer.html#method-i-3E-3D +[doc-ternary]: https://docs.ruby-lang.org/en/master/syntax/control_expressions_rdoc.html#label-Ternary+if +[doc-if]: https://docs.ruby-lang.org/en/master/syntax/control_expressions_rdoc.html#label-if+Expression +[doc-unless]: https://docs.ruby-lang.org/en/master/syntax/control_expressions_rdoc.html#label-unless+Expression +[doc-raise]: https://docs.ruby-lang.org/en/master/Kernel.html#method-i-raise +[doc-integer-gtoe]: https://docs.ruby-lang.org/en/master/Integer.html#method-i-3E-3D diff --git a/exercises/concept/port-palermo/.docs/hints.md b/exercises/concept/port-palermo/.docs/hints.md index 717f1de552..4029851161 100644 --- a/exercises/concept/port-palermo/.docs/hints.md +++ b/exercises/concept/port-palermo/.docs/hints.md @@ -16,9 +16,9 @@ - A string can be [slice][slice] to get parts of it. - Use conditional [`if`][doc-if], to check if the ship is carrying `"OIL"` or `"GAS"`. -[doc-if]: https://ruby-doc.org/core/syntax/control_expressions_rdoc.html#label-if+Expression +[doc-if]: https://docs.ruby-lang.org/en/master/syntax/control_expressions_rdoc.html#label-if+Expression [constants]: https://www.rubyguides.com/2017/07/ruby-constants/ -[upcase]: https://ruby-doc.org/core/String.html#method-i-upcase +[upcase]: https://docs.ruby-lang.org/en/master/String.html#method-i-upcase [slice]: https://ruby-doc.org/core/String.html#class-String-label-String+Slices -[to_s]: https://rubyapi.org/symbol#method-i-to_s -[to_sym]: https://rubyapi.org/string#method-i-to_sym +[to_s]: https://docs.ruby-lang.org/en/master/Symbol.html#method-i-to_s +[to_sym]: https://docs.ruby-lang.org/en/master/String.html#method-i-to_sym diff --git a/exercises/concept/port-palermo/.docs/introduction.md b/exercises/concept/port-palermo/.docs/introduction.md index f48acffebe..83aed02f9e 100644 --- a/exercises/concept/port-palermo/.docs/introduction.md +++ b/exercises/concept/port-palermo/.docs/introduction.md @@ -52,4 +52,4 @@ Due to symbols having a limited set of methods, it can be useful to convert a sy ``` [symbols]: https://www.rubyguides.com/2018/02/ruby-symbols/ -[symbols-api]: https://rubyapi.org/o/symbol +[symbols-api]: https://docs.ruby-lang.org/en/master/Symbol.html diff --git a/exercises/concept/savings-account/.meta/design.md b/exercises/concept/savings-account/.meta/design.md index 0d28f2a147..e18d4a98e1 100644 --- a/exercises/concept/savings-account/.meta/design.md +++ b/exercises/concept/savings-account/.meta/design.md @@ -37,6 +37,6 @@ This exercise does not require any specific representation logic to be added to This exercise does not require any specific logic to be added to the [analyzer][analyzer]. -[float-class]: https://ruby-doc.org/core-2.7.0/Float.html +[float-class]: https://docs.ruby-lang.org/en/master/Float.html [analyzer]: https://github.com/exercism/ruby-analyzer [representer]: https://github.com/exercism/ruby-representer diff --git a/exercises/practice/accumulate/.docs/instructions.append.md b/exercises/practice/accumulate/.docs/instructions.append.md index 64b3ebbc84..b05d7a740c 100644 --- a/exercises/practice/accumulate/.docs/instructions.append.md +++ b/exercises/practice/accumulate/.docs/instructions.append.md @@ -1,6 +1,6 @@ # Advanced -It is typical to call [#to_enum](http://ruby-doc.org/core-2.3.1/Object.html#method-i-to_enum) when defining methods for a generic Enumerable, in case no block is passed. +It is typical to call [#to_enum][to_enum] when defining methods for a generic Enumerable, in case no block is passed. Here is an additional test you could add: @@ -14,3 +14,5 @@ def test_accumulate_when_block_is_deferred assert_equal [1, 4, 9], accumulated_result end ``` + +[to_enum]: https://docs.ruby-lang.org/en/master/Object.html#method-i-to_enum diff --git a/exercises/practice/high-scores/.docs/instructions.append.md b/exercises/practice/high-scores/.docs/instructions.append.md index bc87fa84fd..faad62bcf6 100644 --- a/exercises/practice/high-scores/.docs/instructions.append.md +++ b/exercises/practice/high-scores/.docs/instructions.append.md @@ -1,5 +1,8 @@ # Instructions append -In this exercise you're going to instantiate a class and add some instance methods. http://ruby-for-beginners.rubymonstas.org/writing_classes/initializers.html +In this exercise you're going to instantiate a class and add some instance methods, you can refer to [Writing Classes in Ruby][writing-classes] for how to do this. -A HighScore accepts an array with one or more numbers, each representing one 'game score'. The Array class can offer inspiration for working with arrays. https://ruby-doc.org/core-2.5.1/Array.html \ No newline at end of file +A HighScore accepts an array with one or more numbers, each representing one 'game score'. The Array class can offer inspiration for working with arrays, see [ruby-docs][ruby-docs-array]. + +[ruby-docs-array]: https://docs.ruby-lang.org/en/master/Array.html +[writing-classes]: http://ruby-for-beginners.rubymonstas.org/writing_classes/initializers.html diff --git a/exercises/practice/knapsack/.docs/hints.md b/exercises/practice/knapsack/.docs/hints.md index 76d9614e14..d4d536d751 100644 --- a/exercises/practice/knapsack/.docs/hints.md +++ b/exercises/practice/knapsack/.docs/hints.md @@ -3,7 +3,7 @@ ## General - If you're not sure where to start, try a brute-force solution: - - First, generate all possible combinations of items. [`Array#combination`](https://rubyapi.org/3.3/o/array#method-i-combination) might come in handy. + - First, generate all possible combinations of items. [`Array#combination`][Array#combination] might come in handy. - Then, find the combination that has the highest value and is within the weight limit. - If you want to make your solution as efficient as possible, look into an algorithmic technique called _dynamic programming_. Here are some resources: - ["Demystifying the 0-1 knapsack problem: top solutions explained"](demystifying-the-knapsack-problem). @@ -46,3 +46,4 @@ [solving-dynamic-programming-problems]: https://www.youtube.com/watch?v=aPQY__2H3tE [0-1-knapsack-problem]: https://www.youtube.com/watch?v=cJ21moQpofY [intuition-of-dp-for-knapsack-problem]: https://www.reddit.com/r/explainlikeimfive/comments/junw6n/comment/gces429 +[Array#combination]: https://docs.ruby-lang.org/en/master/Array.html#method-i-combination diff --git a/exercises/practice/parallel-letter-frequency/.docs/instructions.append.md b/exercises/practice/parallel-letter-frequency/.docs/instructions.append.md index 28798a1cf2..43bb2cd7af 100644 --- a/exercises/practice/parallel-letter-frequency/.docs/instructions.append.md +++ b/exercises/practice/parallel-letter-frequency/.docs/instructions.append.md @@ -16,4 +16,4 @@ You may want to investigate what performance impact length of text vs number of - [Ruby `Thread::Queue` Documentation](https://docs.ruby-lang.org/en/master/Thread/Queue.html) - [Ruby `Fiber` Documentation](https://docs.ruby-lang.org/en/master/Fiber.html) - [Ruby `Ractor` Documentation](https://docs.ruby-lang.org/en/master/Ractor.html) -- [`Minitest::Benchmark` Documentation](https://ruby-doc.org/3.0.6/gems/minitest/Minitest/Benchmark.html) +- [`Minitest::Benchmark` Documentation](https://ruby-doc.org/3.4/gems/minitest/Minitest/Benchmark.html) diff --git a/exercises/practice/series/.docs/instructions.append.md b/exercises/practice/series/.docs/instructions.append.md index 3621e908b8..2671086847 100644 --- a/exercises/practice/series/.docs/instructions.append.md +++ b/exercises/practice/series/.docs/instructions.append.md @@ -1,5 +1,8 @@ # Instructions append -In this exercise you're practicing iterating over an array, meaning: executing an operation on each element of an array. Ruby has many useful built-in methods for iterations. Take a look at [this article](http://jeromedalbert.com/ruby-how-to-iterate-the-right-way/). +In this exercise you're practicing iterating over an array, meaning: executing an operation on each element of an array. Ruby has many useful built-in methods for iterations. Take a look at [this article][how-to-iterate]. -Most of the methods listed in the article are not methods specifically for Array, but come from [Enumerable](https://ruby-doc.org/core/Enumerable.html). The article doesn't list iterating over _consecutive elements_. The first challenge is to find a method that does. +Most of the methods listed in the article are not methods specifically for Array, but come from [Enumerable][Enumerable]. The article doesn't list iterating over _consecutive elements_. The first challenge is to find a method that does. + +[Enumerable]: https://docs.ruby-lang.org/en/master/Enumerable.html +[how-to-iterate]: http://jeromedalbert.com/ruby-how-to-iterate-the-right-way/ \ No newline at end of file diff --git a/reference/exercise-concepts/nucleotide-count.md b/reference/exercise-concepts/nucleotide-count.md index 2b98ea2305..3005558585 100644 --- a/reference/exercise-concepts/nucleotide-count.md +++ b/reference/exercise-concepts/nucleotide-count.md @@ -25,7 +25,7 @@ ## Approach: use `Enumerable` mixin - Make the class that represents the nucleotides strand to include `Enumerable` so that all `Enumerable` methods are available. -- Requires implementation of `each` method. See [Enumerable mixin documentation](https://ruby-doc.org/core-2.7.0/Enumerable.html) +- Requires implementation of `each` method. See [Enumerable mixin documentation](https://docs.ruby-lang.org/en/master/Enumerable.html) ## Approach: Use collections + `Enumerable` methods.