From 9399ca49eb69af6925746244c0770c0a3f2cde0d Mon Sep 17 00:00:00 2001 From: Steven Daniels Date: Sun, 29 Mar 2015 10:54:40 +0800 Subject: [PATCH] Removed debug argument from Roo::Base#inspect method --- lib/roo/base.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/roo/base.rb b/lib/roo/base.rb index a620841a..4cd3925d 100644 --- a/lib/roo/base.rb +++ b/lib/roo/base.rb @@ -160,13 +160,8 @@ def to_matrix(from_row = nil, from_column = nil, to_row = nil, to_column = nil, end) end - def inspect(debug = false) - if debug - # call to_s method defined on subclasses - to_s - else - "<##{ self.class }:#{ self.object_id.to_s(8) } #{ self.instance_variables.join(' ') }>" - end + def inspect + "<##{ self.class }:#{ self.object_id.to_s(8) } #{ self.instance_variables.join(' ') }>" end # find a row either by row number or a condition