Class: Punctuation
- Inherits:
-
Object
- Object
- Punctuation
- Defined in:
- lib/punctuation.rb
Overview
mostly handle punctuation and special character like “-”
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(result) ⇒ Punctuation
constructor
A new instance of Punctuation.
Constructor Details
#initialize(result) ⇒ Punctuation
Returns a new instance of Punctuation.
6 7 8 |
# File 'lib/punctuation.rb', line 6 def initialize(result) @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
4 5 6 |
# File 'lib/punctuation.rb', line 4 def result @result end |
Instance Method Details
#call ⇒ Object
10 11 12 13 |
# File 'lib/punctuation.rb', line 10 def call check_punctuation check_special_character end |