Module: PG::Doc

Defined in:
lib/pg/doc.rb,
lib/pg/doc/engine.rb,
lib/pg/doc/version.rb

Defined Under Namespace

Classes: Engine

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.new(connection, opts = {}) ⇒ Object

Returns an instantiated (and configured) rack app



7
8
9
10
11
# File 'lib/pg/doc/engine.rb', line 7

def self.new connection, opts = {}
  PG::Doc::Engine.new do |app|
    app.setup connection, opts
  end
end