clayallsopp/geomotion — pull request #4 by colinta (2012-12-18 21:56:22+00:00)
Title: Adds inspect methods, and tons of extraneous refactors

If you want me to undo some of these, let me know. I have a terrible habit of moving code around and renaming things.

Not much changes, though I did add `centered_in` to `CGSize` and delegate to that in `CGRect#centered_in` (since `origin` is not used in that method, it made sense to do this).

- added inspect methods so i could remove them from sugarcube
- refactored `CGRect#make` to make all assignments before one generic call to `CGRect##new` (instead of mutating `options`)
- Use more of the CGRectBla constants, like `CGRectInfinite` and `CGRectZero`
- changed `relative` to `absolute`. Double check, but passing `rect.center(true)` returns the center point in the coordinate system of the parent rect, but `rect.center` returns the point *relative* to the target frame... (O_o)

So let me know if you want me to undo some of this, I won't be offended.

Congrats again on the book, man! :-D :+1: