Class: Slyde::App

Inherits:
Object
  • Object
show all
Defined in:
lib/slyde/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#presentationObject (readonly)

Returns the value of attribute presentation.



3
4
5
# File 'lib/slyde/app.rb', line 3

def presentation
  @presentation
end

#serverObject (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