mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 06:21:29 +00:00
good stuff
This commit is contained in:
parent
e916fdd8ac
commit
10e04e6d85
@ -4,6 +4,7 @@ class GildedRose
|
|||||||
@items = items
|
@items = items
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Good God
|
||||||
def update_quality()
|
def update_quality()
|
||||||
@items.each do |item|
|
@items.each do |item|
|
||||||
if item.name != "Aged Brie" and item.name != "Backstage passes to a TAFKAL80ETC concert"
|
if item.name != "Aged Brie" and item.name != "Backstage passes to a TAFKAL80ETC concert"
|
||||||
@ -65,4 +66,4 @@ class Item
|
|||||||
def to_s()
|
def to_s()
|
||||||
"#{@name}, #{@sell_in}, #{@quality}"
|
"#{@name}, #{@sell_in}, #{@quality}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user