public Method

Format.unexpand(to_unexpand = nil)

Replaces all occurrences of #tabstop consecutive spaces with a tab character.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 925
def unexpand(to_unexpand = nil)
  to_unexpand = @text if to_unexpand.nil?
  if to_unexpand.class == Array
    to_unexpand.collect { |te| v << __unexpand(te) }
  else
    __unexpand(to_unexpand)
  end
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.