summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/comments.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-08 11:55:52 +0200
committerGeremia Taglialatela <[email protected]>2023-04-08 11:55:52 +0200
commit48f392fb7752f14153126e9d154b4f9e2eef8fa7 (patch)
tree35e6e5052cb33a7cd5245df137c80d4ec7cb9346 /lib/axlsx/workbook/worksheet/comments.rb
parent55526805cf28cc91a22df5811b26cd23bdefa8d3 (diff)
downloadcaxlsx-48f392fb7752f14153126e9d154b4f9e2eef8fa7.tar.gz
caxlsx-48f392fb7752f14153126e9d154b4f9e2eef8fa7.zip
Fix Layout/EmptyLineAfterGuardClause offenses
``` rubocop --only Layout/EmptyLineAfterGuardClause -a ```
Diffstat (limited to 'lib/axlsx/workbook/worksheet/comments.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/comments.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/axlsx/workbook/worksheet/comments.rb b/lib/axlsx/workbook/worksheet/comments.rb
index 3ec2ba01..452b198f 100644
--- a/lib/axlsx/workbook/worksheet/comments.rb
+++ b/lib/axlsx/workbook/worksheet/comments.rb
@@ -25,6 +25,7 @@ module Axlsx
# @param [Worksheet] worksheet The sheet that these comments belong to.
def initialize(worksheet)
raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet)
+
super(Comment)
@worksheet = worksheet
@vml_drawing = VmlDrawing.new(self)
@@ -39,6 +40,7 @@ module Axlsx
raise ArgumentError, "Comment require an author" unless options[:author]
raise ArgumentError, "Comment requires text" unless options[:text]
raise ArgumentError, "Comment requires ref" unless options[:ref]
+
self << Comment.new(self, options)
yield last if block_given?
last