Class: RackConsole::App

Inherits:
Sinatra::Application
  • Object
show all
Defined in:
lib/rack_console/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = { }) ⇒ App

Returns a new instance of App.



60
61
62
63
64
65
# File 'lib/rack_console/app.rb', line 60

def initialize config = { }
  @config = config
  @config[:views_default] ||= "#{File.expand_path('..', __FILE__)}/template/haml"
  @config[:css_dir] ||= "#{File.expand_path('..', __FILE__)}/template/css"
  super
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



66
67
68
# File 'lib/rack_console/app.rb', line 66

def config
  @config
end