shayarnett (owner)

Revisions

gist: 82072 Download_button fork
public
Public Clone URL: git://gist.github.com/82072.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Helpers
  def udpate_total(total)
    @total.clear { para "Total: " + currencify(total) }
  end
end
 
Shoes.app do
  extend Helpers
  @s = stack do
  end
  @total = stack do
    para "Total: $0.00"
  end
  
  animate(1) do
    update_total(rand(200).to_s)
  end
end