Method: Axlsx::Comment#initialize
- Defined in:
- lib/axlsx/workbook/worksheet/comment.rb
#initialize(comments, options = {}) {|_self| ... } ⇒ Comment
Creates a new comment object
14 15 16 17 18 19 20 21 |
# File 'lib/axlsx/workbook/worksheet/comment.rb', line 14 def initialize(comments, = {}) raise ArgumentError, "A comment needs a parent comments object" unless comments.is_a?(Comments) @visible = true @comments = comments yield self if block_given? end |