lib/larynx/application.rb in larynx-0.1.4 vs lib/larynx/application.rb in larynx-0.1.5
- old
+ new
@@ -1,8 +1,10 @@
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