Class: Guides::Preview
- Inherits:
-
Rack::Server
- Object
- Rack::Server
- Guides::Preview
- Defined in:
- lib/guides/preview.rb
Class Method Summary collapse
Instance Method Summary collapse
- #app ⇒ Object
-
#initialize(options = {}) ⇒ Preview
constructor
A new instance of Preview.
Constructor Details
#initialize(options = {}) ⇒ Preview
Returns a new instance of Preview.
65 66 67 68 |
# File 'lib/guides/preview.rb', line 65 def initialize( = {}) @production = !![:production] super() end |
Class Method Details
.start(options = {}) ⇒ Object
58 59 60 61 62 63 |
# File 'lib/guides/preview.rb', line 58 def self.start( = {}) = .dup [:Port] = .delete(:port) || '9292' .merge!(:host => '0.0.0.0', :server => "thin") super end |