Module: Isaac
- Defined in:
- lib/isaac.rb,
lib/isaac/config.rb
Defined Under Namespace
Modules: Config Classes: Application, Event, EventContext, Queue
Constant Summary collapse
- VERSION =
"0.0.5"
Class Method Summary collapse
-
.app ⇒ Object
Returns the current instance of Isaac::Application.
-
.execute(params = {}, &block) ⇒ Object
Use EventContext methods such as msg(), join() etc.
- .logger ⇒ Object
Class Method Details
.app ⇒ Object
Returns the current instance of Isaac::Application
10 11 12 |
# File 'lib/isaac.rb', line 10 def self.app @app ||= Application.new end |
.execute(params = {}, &block) ⇒ Object
Use EventContext methods such as msg(), join() etc. outside on()-events. See examples/execute.rb.
Isaac.execute do
msg 'harryjr', 'you're awesome'
end
18 19 20 |
# File 'lib/isaac.rb', line 18 def self.execute(params={}, &block) app.execute(params, &block) end |
.logger ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/isaac.rb', line 22 def self.logger unless @logger @logger = Logger.new(Config.log_file || "isaac.log") logger.datetime_format = "%Y-%m-%d %H:%M:%S" end @logger end |