Module: Hobby::Singleton

Extended by:
Forwardable
Defined in:
lib/hobby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#requestObject

Returns the value of attribute request.



17
18
19
# File 'lib/hobby.rb', line 17

def request
  @request
end

#responseObject

Returns the value of attribute response.



17
18
19
# File 'lib/hobby.rb', line 17

def response
  @response
end

#routerObject

Returns the value of attribute router.



17
18
19
# File 'lib/hobby.rb', line 17

def router
  @router
end

Instance Method Details

#newObject



19
20
21
# File 'lib/hobby.rb', line 19

def new (*)
  super.router.to_rack_app
end