Sha256: cd0d057b73e1ba5ab9edfe060da5b13f8639289aed2979ea6cc2195a10b9524f
Contents?: true
Size: 800 Bytes
Versions: 10
Compression:
Stored size: 800 Bytes
Contents
# original code is http://shoes-tutorial-note.heroku.com/html/00409_No.9_Shoes.url.html require '../lib/green_shoes' class PhotoFrame < Shoes url '/', :index url '/loogink', :loogink url '/cy', :cy def index eval(['loogink', 'cy'][rand 2]) end def loogink background tomato image './loogink.png', margin: [70, 10, 0, 0] para fg(strong('She is Loogink.'), white), '->', link(strong('Cy')){visit '/cy'}, margin: 10 p app.location end def cy background paleturquoise image './cy.png', margin: [70, 10, 0, 0] para fg(strong('He is Cy.'), gray), ' ->', link(strong('loogink')){visit '/loogink'}, margin: 10 p app.location end end Shoes.app width: 200, height: 120, title: 'Photo Frame'
Version data entries
10 entries across 10 versions & 1 rubygems