From 59f58ff6793ef97e231239be8ce8e2e1cb70989f Mon Sep 17 00:00:00 2001 From: Rob Gleeson Date: Thu, 19 May 2011 19:13:16 +0100 Subject: Fix warnings emitted by -w. --- lib/method_source/source_location.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/method_source') 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 -- cgit v1.2.1