Module: GitWorkflow::Callbacks::Styles::Debug
- Defined in:
- lib/git_workflow/callbacks/styles/debug.rb
Defined Under Namespace
Modules: FinishBehaviour, StartBehaviour
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.setup(start_command = GitWorkflow::Commands::Start, finish_command = GitWorkflow::Commands::Finish) ⇒ Object
Instance Method Details
#debug_method(method) ⇒ Object
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/git_workflow/callbacks/styles/debug.rb', line 43
def debug_method(method)
chain_methods(method, :debug) do |with_chain_method, without_chain_method|
class_eval <<-END_OF_DEBUG_METHOD
def #{ with_chain_method }(*args, &block)
debug("#{ method }(\#{ args.map(&:inspect).join(',') })") do
#{ without_chain_method }(*args, &block)
end
end
END_OF_DEBUG_METHOD
end
alias_method_chain(method, :debug)
end
|