Class: Shirka::App

Inherits:
Object
  • Object
show all
Includes:
Eventalk
Defined in:
lib/shirka/app.rb

Direct Known Subclasses

Qt::App

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Eventalk

#add_watcher, #fire, #forward, #watch, #watchers

Constructor Details

#initializeApp

Returns a new instance of App.



8
9
10
11
# File 'lib/shirka/app.rb', line 8

def initialize
  setup
  init
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/shirka/app.rb', line 6

def path
  @path
end

Instance Method Details

#initObject



16
17
# File 'lib/shirka/app.rb', line 16

def init     
end

#loadObject



33
34
35
36
37
# File 'lib/shirka/app.rb', line 33

def load
  Dir[path + "/**/{view,controller}.rb"].each do |file|
    require_relative file
  end
end

#setupObject



13
14
# File 'lib/shirka/app.rb', line 13

def setup
end

#startObject



19
20
21
22
23
24
25
# File 'lib/shirka/app.rb', line 19

def start
  load
  starting
  main_controller = MainController.new self
  main_controller.start
  started
end

#startedObject



30
31
# File 'lib/shirka/app.rb', line 30

def started
end

#startingObject



27
28
# File 'lib/shirka/app.rb', line 27

def starting
end