Skip to content

Commit e978d29

Browse files
authored
Fix up boutique-inventory-improvements instructions (#1820)
* One sentence per line. * `s/openstruct/OpenStruct/` * Fix header markdown to properly render.
1 parent 65ecee6 commit e978d29

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

exercises/concept/boutique-inventory-improvements/.docs/instructions.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Instructions
22

3-
You're continuing to work on the stock management system you built previously. Since discovering `OpenStruct` and block shortcuts, you've decided to refactor the code a little. Rather than storing the items as hashes, you're going to utilize your newfound skills.
3+
You're continuing to work on the stock management system you built previously.
4+
Since discovering `OpenStruct` and block shortcuts, you've decided to refactor the code a little.
5+
Rather than storing the items as hashes, you're going to utilize your newfound skills.
46

57
## 1. Allow retrievable of items
68

@@ -24,7 +26,7 @@ inventory.items.size
2426
# => 4
2527
```
2628

27-
# 2. Refactor `item_names`
29+
## 2. Refactor `item_names`
2830

2931
Refactor `item_names` to use the new block shortcut you've learnt rather than hashes.
3032
As a reminder, the method should return:
@@ -40,11 +42,10 @@ BoutiqueInventory.new([
4042
# => ["Bamboo Socks Cats", "Black Short Skirt", "Maxi Brown Dress", "Red Short Skirt"]
4143
```
4244

45+
## 3. Refactor `total_stock`
4346

44-
# 2. Refactor `total_stock`
45-
46-
Refactor `total_stock` to use the openstruct's method, rather than referencing a hash.
47-
As a reminder, the method should return::
47+
Refactor `total_stock` to use the OpenStruct's method, rather than referencing a hash.
48+
As a reminder, the method should return:
4849

4950
```ruby
5051
BoutiqueInventory.new([

0 commit comments

Comments
 (0)