Sha256: f11f8609640638db39daf1781e4a7001a54f053e3feaf7bdc86e15a24dac8d6a

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

module Coradoc
  module Element
    module Block
      class ReviewerComment < Core
        def initialize(options = {})
          @title = options.fetch(:title, "")
          @attributes = options.fetch(:attributes, AttributeList.new)
          @delimiter_char = "*"
          @delimiter_len = options.fetch(:delimiter_len, 4)
          @lines = options.fetch(:lines, [])
        end

        def to_adoc
          "\n\n#{gen_title}#{gen_attributes}#{gen_delimiter}\n" << gen_lines << "\n#{gen_delimiter}\n\n"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
coradoc-1.1.6 lib/coradoc/element/block/reviewer_comment.rb
coradoc-1.1.5 lib/coradoc/element/block/reviewer_comment.rb
coradoc-1.1.4 lib/coradoc/element/block/reviewer_comment.rb
coradoc-1.1.3 lib/coradoc/element/block/reviewer_comment.rb
coradoc-1.1.2 lib/coradoc/element/block/reviewer_comment.rb
coradoc-1.1.1 lib/coradoc/element/block/reviewer_comment.rb