Module: Contracted

Defined in:
lib/contracted/json.rb,
lib/contracted/version.rb,
lib/contracted/application.rb

Defined Under Namespace

Modules: Json Classes: Application

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.appObject



10
11
12
# File 'lib/contracted/application.rb', line 10

def self.app
  @app
end

.mount(app, port = '9898') ⇒ Object



6
7
8
# File 'lib/contracted/application.rb', line 6

def self.mount app, port = '9898'
  @app = Application.new app, port.to_s
end