OK - agreed it does hurt the code readability - would making them class
methods improve how the code reads?

On Saturday, 22 February 2014, Will Raxworthy <notifications@github.com>
wrote:

> In app/controllers/base_view_controller.rb:
>
> > @@ -16,4 +16,9 @@ def new_box(x, y)
> >    def animator
> >      @animator ||= UIDynamicAnimator.alloc.initWithReferenceView(view)
> >    end
> > +
> > +  def collision_behavior
> > +    @collision_behavior ||= UICollisionBehavior.alloc.initWithItems([self.box])
> > +  end
>
> Ah right. My thinking behind it was that when you look at a controller you
> can see all the behaviours being applied and how they are built without too
> much back and forth. Lets see how it pans out once we've got it all working.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/RubyCommotion/uikit-dynamics-catalog/pull/12/files#r9974316>
> .
>


-- 
Sent from Gmail Mobile