Sha256: 55a56a15730073f581dc8cadeb80eb5ef25fce62173c47d6e9c19f108481bd40
Contents?: true
Size: 412 Bytes
Versions: 2
Compression:
Stored size: 412 Bytes
Contents
module Larynx class Application attr_reader :call delegate *Commands.instance_methods << {:to => :call} delegate :session, :to => :call def self.run(call) app = self.new(call) call.add_observer app app.run end def initialize(call) @call = call end def run #override for setup end def log(msg) app.call.log(msg) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
larynx-0.1.6 | lib/larynx/application.rb |
larynx-0.1.5 | lib/larynx/application.rb |