Sha256: 6ecf99fb438dee5325c6c81b01bee9428eec980f436e3d63cb8093fcebf54da6
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true Shoes.app title: 'Samples Executor', width: 540, height: 640 do BUTTON_HEIGHT = 20 samples = File.join(File.dirname(__FILE__), "*.rb") stack do Dir.glob(samples).sort.each_with_index do |file, index| button = button(File.basename(file)) { load file } button.style top: (BUTTON_HEIGHT * index), height: BUTTON_HEIGHT end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.rc1 | samples/simple_sample_executor_all.rb |