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(options = nil, &block) ⇒ Application

Returns a new instance of Application.



21
22
23
24
25
# File 'lib/reflex/application.rb', line 21

def initialize (options = nil, &block)
  super()
  set options if options
  @start_block = block if block
end

Class Method Details

.start(*args, &block) ⇒ Object



27
28
29
# File 'lib/reflex/application.rb', line 27

def self.start (*args, &block)
  new(*args, &block).start
end