Skip to content

Commit

Permalink
Implement Excelx#comment? in terms of #comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Empact committed Jun 9, 2014
1 parent a46611c commit 0fb90ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/roo/excelx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,7 @@ def comment(row,col,sheet=nil)

# true, if there is a comment
def comment?(row,col,sheet=nil)
sheet ||= @default_sheet
# read_cells(sheet)
read_comments(sheet) unless @comments_read[sheet]
row,col = normalize(row,col)
comment(row,col) != nil
comment(row,col,sheet) != nil
end

# returns each comment in the selected sheet as an array of elements
Expand Down

0 comments on commit 0fb90ec

Please sign in to comment.