Skip to content

Commit 8aa4ad7

Browse files
authored
Format all instructions.append.md to start with an H1 (required but ignored) and H2 (#1838)
1 parent c1e123a commit 8aa4ad7

9 files changed

Lines changed: 32 additions & 12 deletions

File tree

exercises/practice/accumulate/.docs/instructions.append.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Advanced
1+
# Instructions append
2+
3+
## Advanced
24

35
It is typical to call [#to_enum][to_enum] when defining methods for a generic Enumerable, in case no block is passed.
46

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Instructions Append
22

3+
## Implementation
4+
35
You must return the anagrams in the same order as they are listed in the candidate words.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Instructions Append
22

3+
## Implementation
4+
35
In this exercise you should define a `DndCharacter` class with:
6+
47
- A static method for `modifier(constitution)`.
58
- Methods for `strength`, `dexterity`, `constitution`, `intelligence`, `wisdom`, `charisma`, and `hitpoints`
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Instructions append
22

3+
## Implementation
4+
35
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.
46

5-
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].
7+
A HighScore accepts an array with one or more numbers, each representing one 'game score'.
8+
The Array class can offer inspiration for working with arrays, see [ruby-docs][ruby-docs-array].
69

710
[ruby-docs-array]: https://docs.ruby-lang.org/en/master/Array.html
811
[writing-classes]: http://ruby-for-beginners.rubymonstas.org/writing_classes/initializers.html
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Instructions append
22

3+
## Implementation
4+
35
The exercise requires you to write a class that provides a method for each child in the kindergarten.
46
You can make your work less repetitive (and more fun!) if, instead of manually defining 12 different methods, you use a bit of metaprogramming.
57
If you're not sure where to start, explore the `method_missing` or `define_method` methods.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
# Restrictions
1+
# Instructions append
2+
3+
## Restrictions
24

35
Avoid using `Date#leap?` from the Standard Library.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Instructions append
22

3-
Some editors trim whitespace. If you rely on trailing whitespace in a multiline string,
4-
instead use a format that doesn't rely on trailing whitespace, or adjust the settings in your editor.
3+
## Implementation
4+
5+
Some editors trim whitespace.
6+
If you rely on trailing whitespace in a multiline string, instead use a format that doesn't rely on trailing whitespace, or adjust the settings in your editor.
57

68
[A multiline string cheatsheet for ruby](https://commandercoriander.net/blog/2014/11/09/a-multiline-string-cheatsheet-for-ruby/)
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Instructions append
22

3+
## Implementation
34

4-
In order to make this easier to test, your solution will need to implement a
5-
`Robot.forget` method that clears any shared state that might exist to track
6-
duplicate robot names.
5+
In order to make this easier to test, your solution will need to implement a `Robot.forget` method that clears any shared state that might exist to track duplicate robot names.
76

87
Bonus points if this method does not need to do anything for your solution.
9-
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Instructions append
22

3-
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].
3+
## Implementation
44

5-
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.
5+
In this exercise you're practicing iterating over an array, meaning: executing an operation on each element of an array.
6+
Ruby has many useful built-in methods for iterations.
7+
Take a look at [this article][how-to-iterate].
8+
9+
Most of the methods listed in the article are not methods specifically for Array, but come from [Enumerable][Enumerable].
10+
The article doesn't list iterating over _consecutive elements_.
11+
The first challenge is to find a method that does.
612

713
[Enumerable]: https://docs.ruby-lang.org/en/master/Enumerable.html
8-
[how-to-iterate]: http://jeromedalbert.com/ruby-how-to-iterate-the-right-way/
14+
[how-to-iterate]: http://jeromedalbert.com/ruby-how-to-iterate-the-right-way/

0 commit comments

Comments
 (0)