Skip to content

Commit

Permalink
Merge pull request #188 from stevendaniels/f/fix-inspect
Browse files Browse the repository at this point in the history
Removed debug argument from Roo::Base#inspect method
  • Loading branch information
simonoff committed Mar 29, 2015
2 parents 7ad4de7 + 9399ca4 commit ab3f97b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/roo/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab3f97b

Please sign in to comment.