Changeset 213 for trunk/samples/calc.rb

Show
Ignore:
Timestamp:
09/28/2007 18:13:45 (11 months ago)
Author:
why
Message:

* shoes/ruby.c: adding a span inline, which does just like HTML, for applying adhoc styles.
* samples/: updating some samples with the new methods, still needs lots of work obviously.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/calc.rb

    r172 r213  
    4646 
    4747    stack :margin => 8 do 
    48       number_field = text "<b>#{number}</b>" 
     48      number_field = para strong(number) 
    4949    end 
    5050 
     
    6363           
    6464          number.send(method) 
    65           number_field.replace "<b>#{number} </b>" 
     65          number_field.replace strong(number) 
    6666        end 
    6767      end