Class: Leandocument::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/leandocument/server.rb

Overview

Your code goes hereā€¦

Class Method Summary collapse

Class Method Details

.start(options = {}) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/leandocument/server.rb', line 14

def self.start(options = {})
  set :output, options[:output]
  if options[:output]
    set :embed, true
  end
  self.run!(options)
end