Class: Shirka::App
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Eventalk
#add_watcher, #fire, #forward, #watch, #watchers
Constructor Details
#initialize ⇒ App
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
#path ⇒ Object
Returns the value of attribute path.
6
7
8
|
# File 'lib/shirka/app.rb', line 6
def path
@path
end
|
Instance Method Details
#init ⇒ Object
16
17
|
# File 'lib/shirka/app.rb', line 16
def init
end
|
#load ⇒ Object
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
|
#setup ⇒ Object
13
14
|
# File 'lib/shirka/app.rb', line 13
def setup
end
|
#start ⇒ Object
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
|
#started ⇒ Object
30
31
|
# File 'lib/shirka/app.rb', line 30
def started
end
|
#starting ⇒ Object
27
28
|
# File 'lib/shirka/app.rb', line 27
def starting
end
|