Created
November 22, 2012 08:50
-
-
Save dgtm/4130055 to your computer and use it in GitHub Desktop.
Phase I
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
HTMLHelper | |
<repl type="ruby"> | |
<code file="timer" operation="append/create"> | |
require 'lib/clock.rb' | |
class Timer | |
def tick | |
Clock.new.rewind | |
end | |
end | |
</code> | |
<execute> | |
Timer.new.tick | |
</execute> | |
</repl> | |
YAML | |
config.yml | |
- timer.rb | |
- lib/ | |
- clock.rb | |
- sleep.rb | |
HTMLTranslator | |
- Translate Helper using Ruby Wrapper | |
Ruby FileSystem Wrapper | |
FileSystem.create(config.yml) | |
CODE = - <<END | |
require 'lib/clock.rb' | |
def tick | |
Clock.new.rewind | |
end | |
END | |
FileSystem::File.create(timer,CODE) | |
FileSystem::File.append(timer,CODE) | |
Actual Ruby Gem | |
execute(timer) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment