private Method

Format.__create(arg = nil, &block)

There's no documentation for this item.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 851
def __create(arg = nil, &block) #:nodoc:
    # Format::Text.new(text-to-wrap)
  @text = arg unless arg.nil?
    # Defaults
  @columns          = 72
  @tabstop          = 8
  @first_indent     = 4
  @body_indent      = 0
  @format_style     = LEFT_ALIGN
  @left_margin      = 0
  @right_margin     = 0
  @extra_space      = false
  @text             = Array.new if @text.nil?
  @tag_paragraph    = false
  @tag_text         = Array.new
  @tag_cur          = ""
  @abbreviations    = Array.new
  @nobreak          = false
  @nobreak_regex    = Hash.new
  @split_words      = Array.new
  @hard_margins     = false
  @split_rules      = SPLIT_FIXED
  @hyphenator       = self
  @hyphenator_arity = self.method(:hyphenate_to).arity

  instance_eval(&block) unless block.nil?
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.