Class: PrawnHebrew::HebrewTableCell

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

Overview

Simple wrapper class for Hebrew text in table cells

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (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_sObject



14
15
16
# File 'lib/prawn_hebrew.rb', line 14

def to_s
  @text.to_s
end