Class: Slyde::App
- Inherits:
-
Object
- Object
- Slyde::App
- Defined in:
- lib/slyde/app.rb
Instance Attribute Summary collapse
-
#presentation ⇒ Object
readonly
Returns the value of attribute presentation.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(path) ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize(path) ⇒ App
Returns a new instance of App.
5 6 7 8 |
# File 'lib/slyde/app.rb', line 5 def initialize(path) @presentation = Presentation.new(path) @server = Server.new(presentation) end |
Instance Attribute Details
#presentation ⇒ Object (readonly)
Returns the value of attribute presentation.
3 4 5 |
# File 'lib/slyde/app.rb', line 3 def presentation @presentation end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
3 4 5 |
# File 'lib/slyde/app.rb', line 3 def server @server end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 |
# File 'lib/slyde/app.rb', line 10 def call(env) @server.call(env) end |