class FormattedString

Attributes

fragments[R]

Public Class Methods

new(fragments) click to toggle source
Calls superclass method Object::new
# File lib/asciidoctor/pdf/formatted_string.rb, line 6
def initialize fragments
  super [].tap {|accum| (@fragments = fragments).each {|it| accum << it[:text] } }.join
end

Public Instance Methods

eql?(other) click to toggle source
Calls superclass method
# File lib/asciidoctor/pdf/formatted_string.rb, line 10
def eql? other
  super && (FormattedString === other ? (@fragments ||= nil) == other.fragments : true)
end