Class: Orthotypo::Composer
- Inherits:
-
Object
- Object
- Orthotypo::Composer
- Defined in:
- lib/orthotypo/composer.rb
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
-
#ortho ⇒ Object
readonly
Returns the value of attribute ortho.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(string, html: nil) ⇒ Composer
constructor
A new instance of Composer.
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
#ortho ⇒ Object (readonly)
Returns the value of attribute ortho.
3 4 5 |
# File 'lib/orthotypo/composer.rb', line 3 def ortho @ortho end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
3 4 5 |
# File 'lib/orthotypo/composer.rb', line 3 def string @string end |