Class: VivlioPack::Viewer

Inherits:
Object
  • Object
show all
Defined in:
lib/vivlio_pack/viewer.rb

Defined Under Namespace

Classes: App

Instance Method Summary collapse

Constructor Details

#initializeViewer

Returns a new instance of Viewer.



51
52
53
54
55
# File 'lib/vivlio_pack/viewer.rb', line 51

def initialize
  @app = Rack::Builder.new do
    run App.new
  end
end

Instance Method Details

#runObject



57
58
59
# File 'lib/vivlio_pack/viewer.rb', line 57

def run
  Rack::Handler::Puma.run @app
end