lib/larynx/command.rb in larynx-0.1.1 vs lib/larynx/command.rb in larynx-0.1.2

- old
+ new

@@ -1,9 +1,10 @@ module Larynx class Command include Callbacks attr_reader :command + attr_accessor :interrupted define_callback :before, :after def initialize(command, params=nil, &block) @command, @params, @callbacks = command, params, {} @@ -18,9 +19,13 @@ @command end def interruptable? false + end + + def interrupted? + @interrupted end end class CallCommand < Command def name