samples/simple_calc_2.rb in shoes-4.0.0.pre12 vs samples/simple_calc_2.rb in shoes-4.0.0.rc1

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + Shoes.app height: 250, width: 198 do def clear @accumulator = 0 @display = 0 @op = nil @@ -18,10 +19,10 @@ flow margin: 5 do flow height: 240, width: 190, margin: [2, 5, 0, 0] do background '#996'..'#333', curve: 5 number_field = para strong(@display, ' ' * 20), stroke: white, margin: 8 flow width: 218 do - %w(7 8 9 / 4 5 6 * 1 2 3 - 0 Clr = +).each do |btn| + %w[7 8 9 / 4 5 6 * 1 2 3 - 0 Clr = +].each do |btn| button btn, width: 46, height: 46 do case btn when /[0-9]/ if @clear_display @display = 0