Skip to content

Commit

Permalink
Calling Roo::Base#sheet returns the specified sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
mgarriott committed Dec 11, 2014
1 parent 1e82a21 commit 27d3ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roo/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def method_missing(m, *args)
# access different worksheets by calling spreadsheet.sheet(1)
# or spreadsheet.sheet('SHEETNAME')
def sheet(index, name = false)
default_sheet = String === index ? index : sheets[index]
self.default_sheet = String === index ? index : sheets[index]
name ? [default_sheet, self] : self
end

Expand Down

0 comments on commit 27d3ca3

Please sign in to comment.