Class: Typography
- Inherits:
-
Object
- Object
- Typography
- Defined in:
- lib/typography.rb
Instance Attribute Summary collapse
-
#escape ⇒ Object
readonly
Returns the value of attribute escape.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#word ⇒ Object
readonly
Returns the value of attribute word.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(word, escape, result) ⇒ Typography
constructor
A new instance of Typography.
Constructor Details
#initialize(word, escape, result) ⇒ Typography
Returns a new instance of Typography.
6 7 8 9 10 |
# File 'lib/typography.rb', line 6 def initialize(word, escape, result) @word = word @escape = escape @result = result end |
Instance Attribute Details
#escape ⇒ Object (readonly)
Returns the value of attribute escape.
4 5 6 |
# File 'lib/typography.rb', line 4 def escape @escape end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
4 5 6 |
# File 'lib/typography.rb', line 4 def result @result end |
#word ⇒ Object (readonly)
Returns the value of attribute word.
4 5 6 |
# File 'lib/typography.rb', line 4 def word @word end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/typography.rb', line 12 def call analyze_string end |