Class: PrawnHebrew::HebrewTableCell
- Inherits:
-
Object
- Object
- PrawnHebrew::HebrewTableCell
- Defined in:
- lib/prawn_hebrew.rb
Overview
Simple wrapper class for Hebrew text in table cells
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, hebrew_text: false) ⇒ HebrewTableCell
constructor
A new instance of HebrewTableCell.
- #to_s ⇒ Object
Constructor Details
#initialize(text, hebrew_text: false) ⇒ HebrewTableCell
Returns a new instance of HebrewTableCell.
9 10 11 12 |
# File 'lib/prawn_hebrew.rb', line 9 def initialize(text, hebrew_text: false) @text = text @hebrew_text = hebrew_text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/prawn_hebrew.rb', line 7 def text @text end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/prawn_hebrew.rb', line 14 def to_s @text.to_s end |