Skip to content

Instantly share code, notes, and snippets.

@toothrot
Created March 19, 2009 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toothrot/82059 to your computer and use it in GitHub Desktop.
Save toothrot/82059 to your computer and use it in GitHub Desktop.
#main.rb:
require 'helper'
Shoes.app do
extend Helper
@stack = stack do
para 'I am the first!'
end
helper_method(@stack,10)
end
#helper.rb:
module Helper
def helper_method(target,how_many)
how_many.times do |i|
target.append { para 'odelay' }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment