Created
March 19, 2009 21:03
-
-
Save toothrot/82059 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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