README.md in prezzo-0.2.2 vs README.md in prezzo-0.3.0
- old
+ new
@@ -93,23 +93,23 @@
**Context Validation**
If you initialize the context with a hash, it will skip the validation, however, any object that responds to `.valid?` will attempt a validation, and it will fail if valid? returns false.
-### Prezzo::Composed
+### Prezzo::Composable
-The `Prezzo::Composed` module is an abstraction that provides a nice way of injecting other calculators define how the price will be composed with all of those calculators.
+The `Prezzo::Composable` module is an abstraction that provides a nice way of injecting other calculators define how the price will be composed with all of those calculators.
e.g.:
```ruby
require "prezzo"
module Uber
class RidePriceCalculator
include Prezzo::Calculator
- include Prezzo::Composed
+ include Prezzo::Composable
composed_by base_fare: BaseFareCalculator,
price_per_distance: PricePerDistanceCalculator,
def calculate
@@ -133,10 +133,10 @@
require "prezzo"
module Uber
class RidePriceCalculator
include Prezzo::Calculator
- include Prezzo::Composed
+ include Prezzo::Composable
include Prezzo::Explainable
composed_by base_fare: BaseFareCalculator,
price_per_distance: PricePerDistanceCalculator,
explain_with :base_fare, :price_per_distance