README.md in geomotion-0.13.0 vs README.md in geomotion-0.13.1
- old
+ new
@@ -189,23 +189,30 @@
frame.bottom_right(true) # => [20, 20]
```
#### The great and powerful `apply` method
+Most of the frame-manipulation methods delegate to the `apply` method. You can
+use this method to perform batch changes.
+
+```ruby
+frame = view.frame.apply(left: 10, y: 0, wider: 50, grow_height: 10)
+```
+
All of the methods that return a new frame (`left, shrink, below` and friends)
also accept a hash in which you can apply more changes. You can accomplish the
same thing using method chaining; this is an implementation detail that might
-also clean your code up by grouping changes. And, of course, it can be used on
-its own as well.
+also clean your code up by grouping changes.
```ruby
frame = CGRect.make(x: 10, y: 10, width:10, height: 10)
frame.beside.width(20).down(10).height(20)
# => [[20, 20], [20, 20]]
-# or, using the options hash
+
+# using the options hash / apply method
frame.beside(width: 20, down: 10, height: 20)
+# => [[20, 20], [20, 20]]
-# there are some changes that don't have a corresponding method:
frame.below(grow_width: 10, grow_up: 5)
# => [[0, 15], [40, 25]]
```
### CGSize