class Asciidoctor::Document::AttributeEntry - asciidoctor-1.5.6.2 Documentation

# class Asciidoctor::Document::AttributeEntry

### Attributes

name[R]
negate[R]
value[R]

### Public Class Methods

new(name, value, negate = nil) click to toggle source

    # File lib/asciidoctor/document.rb, line 26
    def initialize name, value, negate = nil
      @name = name
      @value = value
      @negate = negate.nil? ? value.nil? : negate
    end

### Public Instance Methods

save_to(block_attributes) click to toggle source

    # File lib/asciidoctor/document.rb, line 32
    def save_to block_attributes
      (block_attributes[:attribute_entries] ||= []) << self
      self
    end