instance method
format_style=
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
format_style=(fs)
Specifies the format style. Allowable values are:
LEFT_ALIGN-
Left justified, ragged right.
|A paragraph that is| |left aligned.|
RIGHT_ALIGN-
Right justified, ragged left.
|A paragraph that is| | right aligned.|
RIGHT_FILL-
Left justified, right ragged, filled to width by spaces. (Essentially the same as
LEFT_ALIGNexcept that lines are padded on the right.)
|A paragraph that is| |left aligned. |
JUSTIFY-
Fully justified, words filled to width by spaces.
|A paragraph that| |is justified.|
- Default
-
Text::Format::LEFT_ALIGN - Used in
-
#format,#paragraphs
Parameters
-
fsreq
Source
# File actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb, line 544
def format_style=(fs)
raise ArgumentError, "Invalid value provided for format_style." if ((fs < LEFT_ALIGN) || (fs > JUSTIFY))
@format_style = fs
end
Defined in actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb line 544
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Text::Format