This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GildedRose < Struct.new(:name, :days_remaining, :quality) | |
def tick | |
return if name == 'Sulfuras, Hand of Ragnaros' | |
self.days_remaining -= 1 | |
case name | |
when 'Aged Brie' then | |
increase_quality |