librelist archives

« back to archive

and another

and another

From:
Catsquotl
Date:
2011-03-25 @ 15:01
I have a hash..
when i do this:

hash.each do |k,v|
   para strong k
   para v
end

it works if i open this in a new window
If i call a flow in the main app. K is not printed bold.

Silly thing is within the same method laying out the main app.
I have a few calls to para like so:
@fwin4.clear{ stack do
    para strong("Afkorting:"),"#{e.afk}\n",
    strong("Ch.naam\t:"),"#{e.chname}\n",
    strong("Naam\t:")," #{e.name}\n",
    strong("Locatie\t:")," #{e.locatie}\n",
    strong("Aard\t:")," #{e.aard}\n",
    strong("Actie\t:")," #{e.actie}\n"
end

Which works fine

Eelco

Re: [shoes] and another

From:
ashbb
Date:
2011-03-25 @ 17:00
Hi Eelco,

Umm,... sorry, I can't reproduce your problem...
I tried out the following snippet.
It works both with the flow block or without.

require 'green_shoes'
Shoes.app do
  hash = {a: 'AAA', b: 'BBB'}
  flow do
    hash.each do |k,v|
      para strong k
      para v
    end
  end
end

ashbb