public Method

Format.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_ALIGN except 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

Source Code

# File 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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.