Class: Slyde::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Slyde::Server
- Defined in:
- lib/slyde/server.rb
Instance Attribute Summary collapse
-
#presentation ⇒ Object
readonly
Returns the value of attribute presentation.
Instance Method Summary collapse
-
#initialize(presentation) ⇒ Server
constructor
A new instance of Server.
-
#root_url ⇒ Object
TODO: This isn’t working right at all.
Constructor Details
#initialize(presentation) ⇒ Server
Returns a new instance of Server.
10 11 12 13 14 |
# File 'lib/slyde/server.rb', line 10 def initialize(presentation) super() @presentation = presentation end |
Instance Attribute Details
#presentation ⇒ Object (readonly)
Returns the value of attribute presentation.
6 7 8 |
# File 'lib/slyde/server.rb', line 6 def presentation @presentation end |
Instance Method Details
#root_url ⇒ Object
TODO: This isn’t working right at all. The intention is to easily get the root url, especially when using Rack#map
18 19 20 |
# File 'lib/slyde/server.rb', line 18 def root_url request.url.split(request.path_info)[0] end |