summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2011-05-19 13:33:03 -0700
committerJohn Mair <jrmair@gmail.com>2011-05-19 13:33:03 -0700
commitc111c0e64b646bcd75ce2ed1bd58be3eb9bd63cf (patch)
treebdccff21162bf6529b9f7f206c9e91b74d3dc2e0
parent5df1cdaf6f7b5ce4406bca382b3bc048c796fd97 (diff)
parent59f58ff6793ef97e231239be8ce8e2e1cb70989f (diff)
downloadmethod_source-c111c0e64b646bcd75ce2ed1bd58be3eb9bd63cf.tar.gz
Merge pull request #4 from robgleeson/master
Fix warnings emitted by -w.
-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