Sha256: dd8546776c5b4e8341af0667c5cff9e1a952940898265ed5d85dd0717a757230
Contents?: true
Size: 253 Bytes
Versions: 2
Compression:
Stored size: 253 Bytes
Contents
class TodoApp attr_accessor :base_dir def initialize(options) @base_dir = options[:base_dir] super() end def call env html = File.open("#{@base_dir}/home.html", "rb") [200, {"Content-Type" => "text/html"}, [html.read]] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roadkill-0.0.4 | files/sample_app/todo_app.rb |
roadkill-0.0.3 | files/sample_app/todo_app.rb |