Skip to content

Commit

Permalink
Merge pull request #115 from whistlerbrk/master
Browse files Browse the repository at this point in the history
Prevent inspect from being called recursively
  • Loading branch information
Empact committed Mar 27, 2014
2 parents 1ef91fa + 39cbd2d commit f088ed0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/roo/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ def to_matrix(from_row=nil, from_column=nil, to_row=nil, to_column=nil,sheet=nil
end)
end

# call to_s method defined on subclasses
def inspect
to_s
end

# find a row either by row number or a condition
# Caution: this works only within the default sheet -> set default_sheet before you call this method
# (experimental. see examples in the test_roo.rb file)
Expand Down

0 comments on commit f088ed0

Please sign in to comment.