Class: Larynx::Application

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

Direct Known Subclasses

Form

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call) ⇒ Application

Returns a new instance of Application.



14
15
16
# File 'lib/larynx/application.rb', line 14

def initialize(call)
  @call = call
end

Instance Attribute Details

#callObject (readonly)

Returns the value of attribute call.



3
4
5
# File 'lib/larynx/application.rb', line 3

def call
  @call
end

Class Method Details

.run(call) ⇒ Object



8
9
10
11
12
# File 'lib/larynx/application.rb', line 8

def self.run(call)
  app = self.new(call)
  call.add_observer app
  app.run
end

Instance Method Details

#log(msg) ⇒ Object



22
23
24
# File 'lib/larynx/application.rb', line 22

def log(msg)
  app.call.log(msg)
end

#runObject



18
19
20
# File 'lib/larynx/application.rb', line 18

def run
  #override for setup
end