instance method unexpand

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

unexpand(to_unexpand = nil)

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

Parameters

to_unexpand opt = nil
Source
# File actionmailer/lib/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

Defined in actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb line 925 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Text::Format

Type at least 2 characters to search.

↑↓ navigate · open · esc close