Skip to content

Commit

Permalink
p.63 revised
Browse files Browse the repository at this point in the history
  • Loading branch information
kono User committed Apr 25, 2010
1 parent e5b1414 commit 57c1580
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapter1/Movie.rb
Expand Up @@ -11,12 +11,12 @@ def price_code=(value)
@price = case price_code
when REGULAR: RegularPrice.new
when NEW_RELEASE: NewReleasePrice.new
when CHILDRENS: ChildrenPrice.new
when CHILDRENS: ChildrensPrice.new
end
end

def initialize(title, price_code)
@title, @price_code = title, price_code
def initialize(title, the_price_code)
@title, self.price_code = title, the_price_code
end

def charge(days_rented)
Expand Down

0 comments on commit 57c1580

Please sign in to comment.