Shoes::LOG.each_with_index do |(typ, msg), index| 
> On Aug 7, 2013, at 23:51, Faraaz Ismail <notifications@github.com> wrote:
> 
> In lib/shoes/logger.rb:
> 
> > @@ -14,6 +15,51 @@ def get(name)
> >          @loggers && @loggers[name]
> >        end
> >      end
> > +
> > +    def self.setup(app)
> > +      Shoes.app do
> > +        def update
> > +          if @hash != Shoes::LOG.hash
> > +            @hash = Shoes::LOG.hash
> > +            @log.clear do
> > +              i = 0
> > +              Shoes::LOG.each do |typ, msg|
> Hm weird, so it doesn't seem to recognize the index variable I use as an iterator like this:
> 
> Shoes::LOG.each_with_index do |typ, msg, index|
>   background "#f1f5e1" if index % 2 == 0
> end
> Do you have an idea as to why it's not recognizing it amongst the dsl code?
> 
> —
> Reply to this email directly or view it on GitHub.