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.



13
14
15
# File 'lib/vedeu/application.rb', line 13

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

Class Method Details

.start(options = {}) ⇒ Object

:nocov:



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

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

Instance Method Details

#startObject



17
18
19
20
21
22
23
24
25
# File 'lib/vedeu/application.rb', line 17

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

    Vedeu.events.trigger(:refresh)

    runner { main_sequence }
  end
end