Sha256: b59e0adc895640a4701bb2011357286c906ed64feb82d1b7ea51bfa9ab0b76c4
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
# frozen_string_literal: true 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.pre12 | samples/nks_dictionary.rb |