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.



49
50
51
52
53
54
# File 'lib/rack_console/app.rb', line 49

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.



55
56
57
# File 'lib/rack_console/app.rb', line 55

def config
  @config
end