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.



70
71
72
73
74
75
# File 'lib/rack_console/app.rb', line 70

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.



76
77
78
# File 'lib/rack_console/app.rb', line 76

def config
  @config
end