Class: Vedeu::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/application.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Application

Returns a new instance of Application.



9
10
11
# File 'lib/vedeu/application.rb', line 9

def initialize(options = {})
  @options = options
end

Class Method Details

.start(options = {}) ⇒ Object



5
6
7
# File 'lib/vedeu/application.rb', line 5

def self.start(options = {})
  new(options).start
end

Instance Method Details

#startObject



13
14
15
16
17
18
19
20
21
# File 'lib/vedeu/application.rb', line 13

def start
  Terminal.open(mode) do
    Terminal.set_cursor_mode

    Vedeu.events.trigger(:_initialize_)

    runner { main_sequence }
  end
end