summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/comments.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-07-17 09:30:05 +0900
committerRandy Morgan <[email protected]>2012-07-17 09:30:05 +0900
commit40fdb054a0f31a12870d2d12be3928075c738ebf (patch)
tree493baeffb6ca578cf438f066bb348a62bc66121d /lib/axlsx/workbook/worksheet/comments.rb
parentaeb2d164c3db46d4d2d6e05fd34eba4e2193d28a (diff)
downloadcaxlsx-40fdb054a0f31a12870d2d12be3928075c738ebf.tar.gz
caxlsx-40fdb054a0f31a12870d2d12be3928075c738ebf.zip
MOAR cleanup for worksheet.
Diffstat (limited to 'lib/axlsx/workbook/worksheet/comments.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/comments.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/axlsx/workbook/worksheet/comments.rb b/lib/axlsx/workbook/worksheet/comments.rb
index 0bf703f5..25da9de2 100644
--- a/lib/axlsx/workbook/worksheet/comments.rb
+++ b/lib/axlsx/workbook/worksheet/comments.rb
@@ -53,6 +53,14 @@ module Axlsx
@list.map { |comment| comment.author.to_s }.uniq.sort
end
+ # The relationships required by this object
+ # @return [Array]
+ def relationships
+ [Relationship.new(VML_DRAWING_R, "../#{vml_drawing.pn}"),
+ Relationship.new(COMMENT_R, "../#{pn}"),
+ Relationship.new(COMMENT_R_NULL, "NULL")]
+ end
+
# serialize the object
# @param [String] str
# @return [String]