Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
p.140 replace temp "a_discount_factor" with query.
  • Loading branch information
kono committed May 22, 2010
1 parent ddcfcf9 commit 724e92a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chapter6/Replace_Temp_with_Query.rb
Expand Up @@ -7,8 +7,7 @@ def initialize(quantity, price)


def price
a_discount_factor = discount_factor
base_price * a_discount_factor
base_price * discount_factor
end

def base_price
Expand Down

0 comments on commit 724e92a

Please sign in to comment.