I had been wondering for a while how to break up my shoes code. I just
realized tis and didn't see anyone else doing it in the samples so I
thought I would share:

class Foo
  def initialize(shoes_instance)
    shoes_instance.para "This is neatly organized."
  end
end

Shoes.app do
  para "this is not"
  Foo.new(self)
end

My answer came faster than my question: "Shouldn't I be able to pass
around the shoes context like I do with cairo?".

I suppose you can override method missing to delegate to shoes if you
find yourself calling a lot of shoes methods.

I can't wait to see something more clever with this.

Reply via email to