summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/method_source.rb2
-rw-r--r--lib/method_source/source_location.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/method_source.rb b/lib/method_source.rb
index 5461a52..878ddbe 100644
--- a/lib/method_source.rb
+++ b/lib/method_source.rb
@@ -112,8 +112,8 @@ module MethodSource
end
end
- end
end
+ end
end
# Return the sourcecode for the method as a string
diff --git a/lib/method_source/source_location.rb b/lib/method_source/source_location.rb
index e018d74..cc7026b 100644
--- a/lib/method_source/source_location.rb
+++ b/lib/method_source/source_location.rb
@@ -21,7 +21,7 @@ module MethodSource
args =[*(1..(arity<-1 ? -arity-1 : arity ))]
set_trace_func method(:trace_func).to_proc
- call *args rescue nil
+ call(*args) rescue nil
set_trace_func nil
@file = File.expand_path(@file) if @file && File.exist?(File.expand_path(@file))
end