diff options
author | John Mair <jrmair@gmail.com> | 2011-05-19 13:33:03 -0700 |
---|---|---|
committer | John Mair <jrmair@gmail.com> | 2011-05-19 13:33:03 -0700 |
commit | c111c0e64b646bcd75ce2ed1bd58be3eb9bd63cf (patch) | |
tree | bdccff21162bf6529b9f7f206c9e91b74d3dc2e0 | |
parent | 5df1cdaf6f7b5ce4406bca382b3bc048c796fd97 (diff) | |
parent | 59f58ff6793ef97e231239be8ce8e2e1cb70989f (diff) | |
download | method_source-c111c0e64b646bcd75ce2ed1bd58be3eb9bd63cf.tar.gz |
Merge pull request #4 from robgleeson/master
Fix warnings emitted by -w.
-rw-r--r-- | lib/method_source.rb | 2 | ||||
-rw-r--r-- | lib/method_source/source_location.rb | 2 |
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 |