From 5029bd6c82c84614f96c1d7040ccfbc7c500b649 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Sat, 31 Jan 2026 22:25:48 -0800 Subject: [PATCH] Fix up boutique-inventory-improvements instructions * One sentence per line. * `s/openstruct/OpenStruct/` * Fix header markdown to properly render. --- .../.docs/instructions.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/exercises/concept/boutique-inventory-improvements/.docs/instructions.md b/exercises/concept/boutique-inventory-improvements/.docs/instructions.md index b60f347dd3..34fc952837 100644 --- a/exercises/concept/boutique-inventory-improvements/.docs/instructions.md +++ b/exercises/concept/boutique-inventory-improvements/.docs/instructions.md @@ -1,6 +1,8 @@ # Instructions -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. +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. ## 1. Allow retrievable of items @@ -24,7 +26,7 @@ inventory.items.size # => 4 ``` -# 2. Refactor `item_names` +## 2. Refactor `item_names` Refactor `item_names` to use the new block shortcut you've learnt rather than hashes. As a reminder, the method should return: @@ -40,11 +42,10 @@ BoutiqueInventory.new([ # => ["Bamboo Socks Cats", "Black Short Skirt", "Maxi Brown Dress", "Red Short Skirt"] ``` +## 3. Refactor `total_stock` -# 2. Refactor `total_stock` - -Refactor `total_stock` to use the openstruct's method, rather than referencing a hash. -As a reminder, the method should return:: +Refactor `total_stock` to use the OpenStruct's method, rather than referencing a hash. +As a reminder, the method should return: ```ruby BoutiqueInventory.new([