mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
Fix invalid Ruby syntax
This commit is contained in:
parent
d3057d9fb1
commit
69245fd714
@ -4,16 +4,16 @@ require File.join(File.dirname(__FILE__), 'gilded_rose')
|
|||||||
|
|
||||||
puts "OMGHAI!"
|
puts "OMGHAI!"
|
||||||
items = [
|
items = [
|
||||||
Item.new(name="+5 Dexterity Vest", sell_in=10, quality=20),
|
Item.new("+5 Dexterity Vest", 10, 20),
|
||||||
Item.new(name="Aged Brie", sell_in=2, quality=0),
|
Item.new("Aged Brie", 2, 0),
|
||||||
Item.new(name="Elixir of the Mongoose", sell_in=5, quality=7),
|
Item.new("Elixir of the Mongoose", 5, 7),
|
||||||
Item.new(name="Sulfuras, Hand of Ragnaros", sell_in=0, quality=80),
|
Item.new("Sulfuras, Hand of Ragnaros", 0, 80),
|
||||||
Item.new(name="Sulfuras, Hand of Ragnaros", sell_in=-1, quality=80),
|
Item.new("Sulfuras, Hand of Ragnaros", -1, 80),
|
||||||
Item.new(name="Backstage passes to a TAFKAL80ETC concert", sell_in=15, quality=20),
|
Item.new("Backstage passes to a TAFKAL80ETC concert", 15, 20),
|
||||||
Item.new(name="Backstage passes to a TAFKAL80ETC concert", sell_in=10, quality=49),
|
Item.new("Backstage passes to a TAFKAL80ETC concert", 10, 49),
|
||||||
Item.new(name="Backstage passes to a TAFKAL80ETC concert", sell_in=5, quality=49),
|
Item.new("Backstage passes to a TAFKAL80ETC concert", 5, 49),
|
||||||
# This Conjured item does not work properly yet
|
# This Conjured item does not work properly yet
|
||||||
Item.new(name="Conjured Mana Cake", sell_in=3, quality=6), # <-- :O
|
Item.new("Conjured Mana Cake", 3, 6), # <-- :O
|
||||||
]
|
]
|
||||||
|
|
||||||
days = 2
|
days = 2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user