Sha256: 2fe2d3d19d4da6a0b10d1b99e52502bf0279f9dacb3435ef9f22263442a8ee74
Contents?: true
Size: 753 Bytes
Versions: 2
Compression:
Stored size: 753 Bytes
Contents
class PhotoFrame < Shoes url '/', :index url '/cy', :cy url '/loogink', :loogink def index eval(['loogink', 'cy'].sample) end def loogink display tomato, white, "Loogink", "Cy", "She is Loogink" end def cy display paleturquoise, gray, "Cy", "Loogink", "He is Cy" end def display(bg_color, fg_color, name, other, message) background bg_color stack do inscription 'Shoes 4', left: 80 image File.join(Shoes::DIR, "samples/#{name.downcase}.png"), left: 75, top: 25 para fg(strong(message), fg_color), ' ->', link(strong(other), click:"/#{other.downcase}"), left: 35, top: 85 end end end Shoes.app width: 200, height: 120, title: 'Photo Frame'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre2 | samples/sample35.rb |
shoes-4.0.0.pre1 | samples/sample35.rb |