Class: Text::Format::SplitWord
- Defined in:
- lib/action_mailer/vendor/text-format-0.6.3/text/format.rb
Overview
Words forcibly split by Text::Format will be stored as split words. This class represents a word forcibly split.
Instance Attribute Summary collapse
-
#first ⇒ Object
readonly
The first part of the word that was split.
-
#rest ⇒ Object
readonly
The remainder of the word that was split.
-
#word ⇒ Object
readonly
The word that was split.
Instance Method Summary collapse
-
#initialize(word, first, rest) ⇒ SplitWord
constructor
:nodoc:.
Constructor Details
#initialize(word, first, rest) ⇒ SplitWord
:nodoc:
113 114 115 116 117 |
# File 'lib/action_mailer/vendor/text-format-0.6.3/text/format.rb', line 113 def initialize(word, first, rest) #:nodoc: @word = word @first = first @rest = rest end |
Instance Attribute Details
#first ⇒ Object (readonly)
The first part of the word that was split.
109 110 111 |
# File 'lib/action_mailer/vendor/text-format-0.6.3/text/format.rb', line 109 def first @first end |
#rest ⇒ Object (readonly)
The remainder of the word that was split.
111 112 113 |
# File 'lib/action_mailer/vendor/text-format-0.6.3/text/format.rb', line 111 def rest @rest end |
#word ⇒ Object (readonly)
The word that was split.
107 108 109 |
# File 'lib/action_mailer/vendor/text-format-0.6.3/text/format.rb', line 107 def word @word end |