Class: Larynx::Application
- Inherits:
-
Object
- Object
- Larynx::Application
- Defined in:
- lib/larynx/application.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#call ⇒ Object
readonly
Returns the value of attribute call.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(call) ⇒ Application
constructor
A new instance of Application.
- #log(msg) ⇒ Object
- #run ⇒ Object
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
#call ⇒ Object (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 |
#run ⇒ Object
18 19 20 |
# File 'lib/larynx/application.rb', line 18 def run #override for setup end |