Class: Orthotypo::Composer

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

Direct Known Subclasses

En, Fr

Defined Under Namespace

Classes: En, EnGb, Fr, FrCh, FrFr

Constant Summary collapse

SPACE =
' '.freeze
NBSP =
' '.freeze
NNBSP =
''.freeze
PRECIOUS_TOKEN =
'orthotypopreciousthing'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, html: nil) ⇒ Composer

Returns a new instance of Composer.



10
11
12
13
14
# File 'lib/orthotypo/composer.rb', line 10

def initialize(string, html: nil)
  @string = string
  @html = html
  parse
end

Instance Attribute Details

#orthoObject (readonly)

Returns the value of attribute ortho.



3
4
5
# File 'lib/orthotypo/composer.rb', line 3

def ortho
  @ortho
end

#stringObject (readonly)

Returns the value of attribute string.



3
4
5
# File 'lib/orthotypo/composer.rb', line 3

def string
  @string
end