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
# Forked from gist: 148765 | |
# | |
# Removed question and default value | |
# Renamed main method | |
# Put the 'ensure' clause within its own begin/end block | |
# Added a constant | |
# | |
# TO DO: increase animation speed | |
require 'rubygems' |
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
# Rack middleware example | |
require 'rubygems' | |
require 'rack' | |
class MyRackMiddleware | |
def initialize(app) | |
@app = app | |
end | |