Class: Reflex::Application

Inherits:
Object
  • Object
show all
Includes:
Hookable, Xot::Inspectable, 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.



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

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

Class Method Details

.start(*args, &block) ⇒ Object



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

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