Sha256: 075f0a6ab426747d994f2d8aadf9702f9d8ee81c7a6dde027ffaf0426c5a7f75
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
class Dictionary < Shoes url '/', :index url '/(\w+)', :word def index stack do title "Enter a Word" @word = edit_line button "OK" do visit "/#{@word.text}" end end end def word(string) stack do para "No definition found for #{string}. ", "Sorry this doesn't actually work." end end end Shoes.app
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre2 | samples/nks_dictionary.rb |