Class: Shyguy
- Inherits:
-
Object
- Object
- Shyguy
- Defined in:
- lib/shyguy.rb
Overview
The main Shyguy class
Constant Summary collapse
- VERSION =
'0.1.1'- SEPARATOR =
'|'- SYMBOL =
"\u00AD"- ALTERNATIVES =
['­', "\u00AD", '­', '­', '­'].freeze
Instance Attribute Summary collapse
-
#original_text ⇒ Object
readonly
Returns the value of attribute original_text.
-
#shy ⇒ Object
readonly
Returns the value of attribute shy.
-
#stripped ⇒ Object
readonly
Returns the value of attribute stripped.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text) ⇒ Shyguy
constructor
A new instance of Shyguy.
Constructor Details
#initialize(text) ⇒ Shyguy
Returns a new instance of Shyguy.
13 14 15 16 17 |
# File 'lib/shyguy.rb', line 13 def initialize(text) @original_text = text normalize strip_hyphenation end |
Instance Attribute Details
#original_text ⇒ Object (readonly)
Returns the value of attribute original_text.
11 12 13 |
# File 'lib/shyguy.rb', line 11 def original_text @original_text end |
#shy ⇒ Object (readonly)
Returns the value of attribute shy.
11 12 13 |
# File 'lib/shyguy.rb', line 11 def shy @shy end |
#stripped ⇒ Object (readonly)
Returns the value of attribute stripped.
11 12 13 |
# File 'lib/shyguy.rb', line 11 def stripped @stripped end |