README.md in guerrilla_patch-2.1.0 vs README.md in guerrilla_patch-2.2.0
- old
+ new
@@ -32,21 +32,21 @@
Support for combining complex string expressions (not for the performance, but for the looks)
```
def mark
- year_of_manufacure <<
+ year_of_manufacture <<
city.blank? '' : city.address <<
person.blank? '' : person.name[2..4]
end
```
You can write like this
```
def mark
consists_of do |r|
- r.add year_of_manufacure
+ r.add year_of_manufacture
r.when_present(city) { |c| c.address }
r.when_present(person) { |p| p.name[2..4] }
end
end
```