Class: Pathways::Server

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.tabsObject



60
61
62
# File 'lib/pathways/server.rb', line 60

def self.tabs
  @tabs ||= ["Home","Sessions", "Actions", "Pages"]
end

Instance Method Details

#show(page, layout = true) ⇒ Object



56
57
58
# File 'lib/pathways/server.rb', line 56

def show(page, layout = true)
  erb page.to_sym, {:layout => layout}
end