Class: Reflex::Application
- Inherits:
-
Object
- Object
- Reflex::Application
- Includes:
- Hookable, Xot::Setter
- Defined in:
- lib/reflex/application.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(opts = {}, &block) ⇒ Application
constructor
A new instance of Application.
Methods included from Hookable
Constructor Details
#initialize(opts = {}, &block) ⇒ Application
Returns a new instance of Application.
18 19 20 21 22 |
# File 'lib/reflex/application.rb', line 18 def initialize (opts = {}, &block) super() set opts @start_block = block if block end |
Class Method Details
.start(*args, &block) ⇒ Object
24 25 26 |
# File 'lib/reflex/application.rb', line 24 def self.start (*args, &block) self.new(*args, &block).start end |