File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def invoke(*names, &block)
61
61
invocations [ name ] = false
62
62
invocation_blocks [ name ] = block if block_given?
63
63
64
- class_eval <<-METHOD , __FILE__ , __LINE__
64
+ class_eval <<-METHOD , __FILE__ , __LINE__ + 1
65
65
def _invoke_#{ name . to_s . gsub ( /\W / , '_' ) }
66
66
klass, command = self.class.prepare_for_invocation(nil, #{ name . inspect } )
67
67
@@ -120,7 +120,7 @@ def invoke_from_option(*names, &block)
120
120
invocations [ name ] = true
121
121
invocation_blocks [ name ] = block if block_given?
122
122
123
- class_eval <<-METHOD , __FILE__ , __LINE__
123
+ class_eval <<-METHOD , __FILE__ , __LINE__ + 1
124
124
def _invoke_from_option_#{ name . to_s . gsub ( /\W / , '_' ) }
125
125
return unless options[#{ name . inspect } ]
126
126
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def shell
55
55
56
56
# Common methods that are delegated to the shell.
57
57
SHELL_DELEGATED_METHODS . each do |method |
58
- module_eval <<-METHOD , __FILE__ , __LINE__
58
+ module_eval <<-METHOD , __FILE__ , __LINE__ + 1
59
59
def #{ method } (*args,&block)
60
60
shell.#{ method } (*args,&block)
61
61
end
You can’t perform that action at this time.
0 commit comments