Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (30 sloc) 987 Bytes

Shoes.setup

If your Shoes app requires some libraries, this might be useful. See the following information:

Clearing Up The Whole Shoes And RubyGems Deal

# sample27.rb
Shoes.setup do
  gem 'something'
end

Shoes.app do
  para require 'something'
end

sample27.png

sample27.png

One more example

# sample50.rb
Shoes.setup do
  gem 'sys-uname'
end

require 'sys/uname'
include Sys

Shoes.app :width => 300, :height => 50, :resizable => false do
    @platform = para Uname.sysname
end

sample50.png

sample50.png

Original snippet was written by Massimiliano in a personal mail discussion.

Policeman

The sample27.rb and sample50.rb doesn't work with Shoes-0.r1263.... so far.