Class: Text::Format::SplitWord

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#firstObject (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

#restObject (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

#wordObject (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