Class: RackConsole::App
- Inherits:
-
Sinatra::Application
- Object
- Sinatra::Application
- RackConsole::App
- Defined in:
- lib/rack_console/app.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config = { }) ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize(config = { }) ⇒ App
Returns a new instance of App.
70 71 72 73 74 75 |
# File 'lib/rack_console/app.rb', line 70 def initialize config = { } @config = config @config[:views_default] ||= "#{File.('..', __FILE__)}/template/haml" @config[:css_dir] ||= "#{File.('..', __FILE__)}/template/css" super end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
76 77 78 |
# File 'lib/rack_console/app.rb', line 76 def config @config end |