ERB::Util

Public Class Methods

t( s ) click to toggle source
Alias for: textilize
textilize( s ) click to toggle source

A utility method for transforming Textile in s to HTML.

  require "erb"
  include ERB::Util
  
  puts textilize("Isn't ERB *great*?")

Generates

  <p>Isn&#8217;t <span class="caps">ERB</span> <strong>great</strong>?</p>
    # File lib/redcloth/erb_extension.rb, line 16
16:     def textilize( s )
17:       if s && s.respond_to?(:to_s)
18:         RedCloth.new( s.to_s ).to_html
19:       end
20:     end
Also aliased as: t

Private Instance Methods

t( s ) click to toggle source
Alias for: textilize
textilize( s ) click to toggle source

A utility method for transforming Textile in s to HTML.

  require "erb"
  include ERB::Util
  
  puts textilize("Isn't ERB *great*?")

Generates

  <p>Isn&#8217;t <span class="caps">ERB</span> <strong>great</strong>?</p>
    # File lib/redcloth/erb_extension.rb, line 16
16:     def textilize( s )
17:       if s && s.respond_to?(:to_s)
18:         RedCloth.new( s.to_s ).to_html
19:       end
20:     end
Also aliased as: t

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.