Class: Reflex::Application

Inherits:
Object
  • Object
show all
Includes:
Hookable, Xot::Setter
Defined in:
lib/reflex/application.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Hookable

#hook

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