summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-18 09:31:09 +0200
committerGeremia Taglialatela <[email protected]>2023-05-18 09:31:09 +0200
commited25dade53fd5e4d74d9d171fcc62e3fc2cd68a7 (patch)
treee896ad6924a0230d3fd73fdcc899192e06890f35 /lib/axlsx/workbook/worksheet
parent6a4b82def2e94b4811c38c37e606d426710d1e6c (diff)
downloadcaxlsx-ed25dade53fd5e4d74d9d171fcc62e3fc2cd68a7.tar.gz
caxlsx-ed25dade53fd5e4d74d9d171fcc62e3fc2cd68a7.zip
Fix YARD warnings
- `should_use_same_id_as?` has been replaced by `ids_cache_key` in 913003e Also fixes a typo [ci skip]
Diffstat (limited to 'lib/axlsx/workbook/worksheet')
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb4
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index 4d1bae63..c978bde4 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -83,7 +83,7 @@ module Axlsx
attr_accessor :raw_style
# The index of the cellXfs item to be applied to this cell.
- # @param [Hash] styles
+ # @param [Hash] style
# @see Axlsx::Styles
def add_style(style)
self.raw_style ||= {}
@@ -115,7 +115,7 @@ module Axlsx
# automatically determed.
# @see Cell#cell_type_from_value
# @return [Symbol] The type of data this cell's value is cast to.
- # @raise [ArgumentExeption] Cell.type must be one of [:date, time, :float, :integer, :string, :boolean]
+ # @raise [ArgumentError] Cell.type must be one of [:date, time, :float, :integer, :string, :boolean]
# @note
# If the value provided cannot be cast into the type specified, type is changed to :string and the following logic is applied.
# :string to :integer or :float, type conversions always return 0 or 0.0
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb
index 21c53409..c76300f2 100644
--- a/lib/axlsx/workbook/worksheet/worksheet.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet.rb
@@ -581,7 +581,7 @@ module Axlsx
end
# Set the style for cells in a specific column
- # @param [String|Array] cell references
+ # @param [String|Array] cell_refs Cell references
# @param [Hash] styles
def add_style(cell_refs, *styles)
if !cell_refs.is_a?(Array)
@@ -602,8 +602,8 @@ module Axlsx
end
# Set the style for cells in a specific column
- # @param [String|Array] cell references
- # @param [Hash|Array|Symbol] border options
+ # @param [String|Array] cell_refs Cell references
+ # @param [Hash|Array|Symbol] options border options
def add_border(cell_refs, options = nil)
if options.is_a?(Hash)
border_edges = options[:edges]