Class: EideticPDF::PdfText::TextPiece
- Inherits:
-
Object
- Object
- EideticPDF::PdfText::TextPiece
- Defined in:
- lib/epdft.rb
Instance Attribute Summary collapse
-
#chars ⇒ Object
Returns the value of attribute chars.
-
#color ⇒ Object
Returns the value of attribute color.
-
#font ⇒ Object
Returns the value of attribute font.
-
#text ⇒ Object
Returns the value of attribute text.
-
#tokens ⇒ Object
Returns the value of attribute tokens.
-
#underline ⇒ Object
Returns the value of attribute underline.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(text, width, font, color, underline, chars, tokens) ⇒ TextPiece
constructor
A new instance of TextPiece.
- #initialize_copy(other) ⇒ Object
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
#chars ⇒ Object
Returns the value of attribute chars.
36 37 38 |
# File 'lib/epdft.rb', line 36 def chars @chars end |
#color ⇒ Object
Returns the value of attribute color.
36 37 38 |
# File 'lib/epdft.rb', line 36 def color @color end |
#font ⇒ Object
Returns the value of attribute font.
36 37 38 |
# File 'lib/epdft.rb', line 36 def font @font end |
#text ⇒ Object
Returns the value of attribute text.
36 37 38 |
# File 'lib/epdft.rb', line 36 def text @text end |
#tokens ⇒ Object
Returns the value of attribute tokens.
36 37 38 |
# File 'lib/epdft.rb', line 36 def tokens @tokens end |
#underline ⇒ Object
Returns the value of attribute underline.
36 37 38 |
# File 'lib/epdft.rb', line 36 def underline @underline end |
#width ⇒ Object
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 |