Permalink
Browse files

Prettified docs.

  • Loading branch information...
1 parent cab63de commit 2fec98951cd0bd8c0301178c826cfa4e627abb1f @mtodd committed Jul 1, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/halcyon/runner.rb
View
@@ -16,11 +16,13 @@ module Halcyon
#
# # load the config file and initialize the app
# Halcyon::Runner.new
+ #
class Runner
autoload :Commands, 'halcyon/runner/commands'
# Initializes the application and application resources.
+ #
def initialize(&block)
Halcyon::Application.boot(&block) unless Halcyon::Application.booted
@app = Halcyon::Application.new
@@ -30,6 +32,7 @@ def initialize(&block)
# +env+ the request environment details
#
# Returns [Fixnum:status, {String:header => String:value}, [String:body]]
+ #
def call(env)
@app.call(env)
end
@@ -40,6 +43,7 @@ class << self
# +argv+ the arguments to pass to the commands
#
# Returns nothing
+ #
def run!(argv=ARGV)
Commands.send(argv.shift, argv)
end

0 comments on commit 2fec989

Please sign in to comment.