class Format
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Text::Format for Ruby is copyright 2002 - 2005 by Austin Ziegler. It is available under Ruby’s licence, the Perl Artistic licence, or the GNU GPL version 2 (or at your option, any later version). As a special exception, for use with official Rails (provided by the rubyonrails.org development team) and any project created with official Rails, the following alternative MIT-style licence may be used:
Text::Format Licence for Rails and Rails Applications
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Inherits from
Namespace
Classes
Constants
- Text::Format::ABBREV
- Text::Format::JUSTIFY
- Text::Format::LEFT_ALIGN
- Text::Format::LEQ_RE
- Text::Format::RIGHT_ALIGN
- Text::Format::RIGHT_FILL
- Text::Format::SPLIT_ALL
- Text::Format::SPLIT_CONTINUATION
- Text::Format::SPLIT_CONTINUATION_FIXED
- Text::Format::SPLIT_FIXED
- Text::Format::SPLIT_HYPHENATION
- Text::Format::SPLIT_HYPHENATION_CONTINUATION
- Text::Format::SPLIT_HYPHENATION_FIXED
- Text::Format::VERSION
Attributes
- Text::Format#abbreviations
- Text::Format#body_indent
- Text::Format#columns
- Text::Format#extra_space
- Text::Format#first_indent
- Text::Format#format_style
- Text::Format#hard_margins
- Text::Format#hyphenator
- Text::Format#left_margin
- Text::Format#nobreak
- Text::Format#nobreak_regex
- Text::Format#right_margin
- Text::Format#split_rules
- Text::Format#split_words
- Text::Format#tabstop
- Text::Format#tag_paragraph
- Text::Format#tag_text
- Text::Format#text
Methods (defined here)
- # ==
- # body_indent=
- # center
- # columns=
- # expand
- # first_indent=
- # format
- # format_style=
- # hyphenate_to
- # hyphenator=
- # justify?
- # left_align?
- # left_margin=
- # paragraphs
- # right_align?
- # right_fill?
- # right_margin=
- # split_rules=
- # tabstop=
- # unexpand
- self. new
Methods (inherited)
From Object (32)
- # acts_like?
- # app
- # blank?
- # class_eval
- # create
- # create_fixtures
- # duplicable?
- # edit
- # find_cmd
- # helper
- # index
- # instance_exec
- # instance_variable_defined?
- # instance_variable_names
- # message
- # metaclass
- # new_session
- # present?
- # reload!
- # returning
- # start_debugger
- # tail
- # to_json
- # to_param
- # to_query
- # unescape
- # update
- # with_options
- self. blank_slate_method_added
- self. find_hidden_method
- self. lookup_missing_generator
- self. method_added
From ActionController::Caching (3)
- # cache
- self. cache_configured?
- self. cache_store=
From ActionController::Cookies (2)
From ActionController::Flash (1)
- self. included
From ActionController::RecordIdentifier (5)
From ActionController::Rescue (7)
From ActionController::Streaming (2)
From ActionController::Translation (4)
From ActiveRecord::Callbacks (14)
From ActiveRecord::Dirty (4)
From ActiveRecord::Locking::Pessimistic (1)
- # lock!
From ActiveRecord::NamedScope (1)
- self. included
From ActiveRecord::Transactions (4)
From ActiveRecord::Validations (7)
From ActiveRecord::NamedScope::ClassMethods (2)
- # named_scope
- # scopes
From ActiveRecord::Validations::ClassMethods (13)
From ActiveSupport::Memoizable (1)
- # memoize