Class: TinyIRC::App
- Inherits:
-
Sinatra::Application
- Object
- Sinatra::Application
- TinyIRC::App
- Defined in:
- lib/tinyirc/app.rb
Class Attribute Summary collapse
-
.bot ⇒ Object
Returns the value of attribute bot.
Class Method Summary collapse
Class Attribute Details
.bot ⇒ Object
Returns the value of attribute bot.
26 27 28 |
# File 'lib/tinyirc/app.rb', line 26 def bot @bot end |
Class Method Details
.cfg(bot) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/tinyirc/app.rb', line 31 def self.cfg(bot) TinyIRC::App.bot = bot configure do disable :show_exceptions set :clean_trace, true set :public_folder, File.dirname(__FILE__) + '/public' set :views, File.dirname(__FILE__) + '/views' set :bind, ENV['HOST'] || '0.0.0.0' set :port, (ENV['PORT'] || 8080).to_i disable :logging end end |