rubymotion/motion-kit — pull request #4 by colinta (2014-05-07 16:30:42+00:00)
Title: Provides an easier and more thorough fix to the SugarCube compatibility problem

The issue that this solves is when a method is defined on Object or Kernel, and we want to don't want to fall through to that method, we want to delegate to the Layout or call a setter method. For instance, SugarCube defines a REPL helper `frame`, but we want `frame ...` to call either `UIViewLayout#frame` or `CALayer#setFrame`.

This branch introduces `delegate_method_fix :frame`, which accomplishes this goal. It should be used in the BaseLayout

```ruby
module MotionKit
class BaseLayout
delegate_method_fix :frame
end
end
```