summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorrandym <[email protected]>2017-04-01 18:40:38 +0900
committerrandym <[email protected]>2017-04-01 18:40:38 +0900
commitc26b0ee365a8f9bacf4ddabae00f69216b42e2ce (patch)
tree007967c3b70e0a99a699c4057cae613c239a684d /lib
parent65eab9445cc965dfd1f4d9665661b545e7f0d747 (diff)
downloadcaxlsx-c26b0ee365a8f9bacf4ddabae00f69216b42e2ce.tar.gz
caxlsx-c26b0ee365a8f9bacf4ddabae00f69216b42e2ce.zip
chore(depreciated): remove depreciated members
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb
index 031a081f..c7004ba2 100644
--- a/lib/axlsx/workbook/worksheet/worksheet.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet.rb
@@ -8,7 +8,7 @@ module Axlsx
# definition of characters which are less than the maximum width of 0-9 in the default font for use in String#count.
# This is used for autowidth calculations
THIN_CHARS = '^.acfijklrstxzFIJL()-'.freeze
-
+
# Creates a new worksheet.
# @note the recommended way to manage worksheets is Workbook#add_worksheet
# @see Workbook#add_worksheet
@@ -327,27 +327,27 @@ module Axlsx
# Indicates if the worksheet should show gridlines or not
# @return Boolean
# @deprecated Use SheetView#show_grid_lines instead.
- def show_gridlines
- warn('axlsx::DEPRECIATED: Worksheet#show_gridlines has been depreciated. This value can get over SheetView#show_grid_lines.')
- sheet_view.show_grid_lines
- end
+ # def show_gridlines
+ # warn('axlsx::DEPRECIATED: Worksheet#show_gridlines has been depreciated. This value can get over SheetView#show_grid_lines.')
+ # sheet_view.show_grid_lines
+ # end
# Indicates if the worksheet is selected in the workbook
# It is possible to have more than one worksheet selected, however it might cause issues
# in some older versions of excel when using copy and paste.
# @return Boolean
# @deprecated Use SheetView#tab_selected instead.
- def selected
- warn('axlsx::DEPRECIATED: Worksheet#selected has been depreciated. This value can get over SheetView#tab_selected.')
- sheet_view.tab_selected
- end
+ # def selected
+ # warn('axlsx::DEPRECIATED: Worksheet#selected has been depreciated. This value can get over SheetView#tab_selected.')
+ # sheet_view.tab_selected
+ # end
# (see #fit_to_page)
# @return [Boolean]
- def fit_to_page=(v)
- warn('axlsx::DEPRECIATED: Worksheet#fit_to_page has been depreciated. This value will automatically be set for you when you use PageSetup#fit_to.')
- fit_to_page?
- end
+ # def fit_to_page=(v)
+ # warn('axlsx::DEPRECIATED: Worksheet#fit_to_page has been depreciated. This value will automatically be set for you when you use PageSetup#fit_to.')
+ # fit_to_page?
+ # end
# The name of the worksheet
# The name of a worksheet must be unique in the workbook, and must not exceed 31 characters
@@ -630,7 +630,7 @@ module Axlsx
# Returns the cell or cells defined using excel style A1:B3 references.
# @param [String|Integer] cell_def the string defining the cell or range of cells, or the rownumber
# @return [Cell, Array]
- def [] (cell_def)
+ def [](cell_def)
return rows[cell_def] if cell_def.is_a?(Integer)
parts = cell_def.split(':').map{ |part| name_to_cell part }
if parts.size == 1