diff options
author | Rob Gleeson <rob@flowof.info> | 2011-05-19 19:13:16 +0100 |
---|---|---|
committer | Rob Gleeson <rob@flowof.info> | 2011-05-19 19:13:16 +0100 |
commit | 59f58ff6793ef97e231239be8ce8e2e1cb70989f (patch) | |
tree | bdccff21162bf6529b9f7f206c9e91b74d3dc2e0 | |
parent | 5df1cdaf6f7b5ce4406bca382b3bc048c796fd97 (diff) | |
download | method_source-59f58ff6793ef97e231239be8ce8e2e1cb70989f.tar.gz |
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 |