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.



12
13
14
# File 'lib/larynx/application.rb', line 12

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



6
7
8
9
10
# File 'lib/larynx/application.rb', line 6

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

Instance Method Details

#log(msg) ⇒ Object



20
21
22
# File 'lib/larynx/application.rb', line 20

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

#runObject



16
17
18
# File 'lib/larynx/application.rb', line 16

def run
  #override for setup
end