Class: EideticPDF::PdfText::TextPiece

Inherits:
Object
  • Object
show all
Defined in:
lib/epdft.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, width, font, color, underline, chars, tokens) ⇒ TextPiece

Returns a new instance of TextPiece.



38
39
40
# File 'lib/epdft.rb', line 38

def initialize(text, width, font, color, underline, chars, tokens)
  @text, @width, @font, @color, @underline, @chars, @tokens = text, width, font, color, underline, chars, tokens
end

Instance Attribute Details

#charsObject

Returns the value of attribute chars.



36
37
38
# File 'lib/epdft.rb', line 36

def chars
  @chars
end

#colorObject

Returns the value of attribute color.



36
37
38
# File 'lib/epdft.rb', line 36

def color
  @color
end

#fontObject

Returns the value of attribute font.



36
37
38
# File 'lib/epdft.rb', line 36

def font
  @font
end

#textObject

Returns the value of attribute text.



36
37
38
# File 'lib/epdft.rb', line 36

def text
  @text
end

#tokensObject

Returns the value of attribute tokens.



36
37
38
# File 'lib/epdft.rb', line 36

def tokens
  @tokens
end

#underlineObject

Returns the value of attribute underline.



36
37
38
# File 'lib/epdft.rb', line 36

def underline
  @underline
end

#widthObject

Returns the value of attribute width.



36
37
38
# File 'lib/epdft.rb', line 36

def width
  @width
end

Instance Method Details

#initialize_copy(other) ⇒ Object



42
43
44
# File 'lib/epdft.rb', line 42

def initialize_copy(other)
  @text = @text.clone
end