Class | Statemachine::StubContext |
In: |
lib/statemachine/stub_context.rb
|
Parent: | Object |
statemachine | [RW] |
# File lib/statemachine/stub_context.rb, line 5 5: def initialize(options = {}) 6: @verbose = options[:verbose] 7: end
# File lib/statemachine/stub_context.rb, line 18 18: def __generic_method(name, *args) 19: if !defined?($IS_TEST) 20: puts "action invoked: #{name}(#{args.join(", ")}) #{block_given? ? "with block" : ""}" if @verbose 21: end 22: end