Class: Prawn::Rtl::Connector::Logic::CharacterInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/prawn/rtl/connector/logic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(common, isolated, final, initial, medial, connects, diacritic) ⇒ CharacterInfo

Returns a new instance of CharacterInfo.



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/prawn/rtl/connector/logic.rb', line 13

def initialize(common, isolated, final, initial, medial, connects, diacritic)
  @common = common
  @formatted = {
    isolated: isolated,
    final: final,
    initial: initial,
    medial: medial,
  }
  @connects = connects
  @diacritic = diacritic
end

Instance Attribute Details

#commonObject

Returns the value of attribute common.



11
12
13
# File 'lib/prawn/rtl/connector/logic.rb', line 11

def common
  @common
end

#formattedObject

Returns the value of attribute formatted.



11
12
13
# File 'lib/prawn/rtl/connector/logic.rb', line 11

def formatted
  @formatted
end

Instance Method Details

#connects?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/prawn/rtl/connector/logic.rb', line 25

def connects?
  @connects
end

#diacritic?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/prawn/rtl/connector/logic.rb', line 29

def diacritic?
  @diacritic
end