lib/prezzo/calculator.rb in prezzo-0.3.0 vs lib/prezzo/calculator.rb in prezzo-0.3.1
- old
+ new
@@ -8,17 +8,15 @@
raise "Calculate not implemented"
end
private
+ attr_reader :context
+
def validated!(context)
raise "Empty Context" if context.nil?
raise "Invalid Context" if context.respond_to?(:valid?) && !context.valid?
context
- end
-
- def context
- @context
end
end
end