Sha256: 77b6c753d99becacf9dd9f126ec6b41df718b7926a00e5c6ab892133790d6753

Contents?: true

Size: 1.05 KB

Versions: 19

Compression:

Stored size: 1.05 KB

Contents

$:.unshift(File.dirname(__FILE__))

# If this is a frozen gem in Rails 2.1 and RedCloth 3.x was already
# loaded by Rails' ActionView::Helpers::TextHelper, the user will get
# "redcloth_scan.bundle: Class is not a module (TypeError)"
# This hack is to work around that Rails loading problem.  The problem
# appears to be fixed in Edge Rails [51e4106].
Object.send(:remove_const, :RedCloth) if Object.const_defined?(:RedCloth) && RedCloth.is_a?(Class)

require 'redcloth_scan'
require 'redcloth/version'
require 'redcloth/textile_doc'
require 'redcloth/formatters/base'
require 'redcloth/formatters/html'
require 'redcloth/formatters/latex'

module RedCloth
  
  # A convenience method for creating a new TextileDoc. See
  # RedCloth::TextileDoc.
  def self.new( *args, &block )
    RedCloth::TextileDoc.new( *args, &block )
  end
  
  # Include extension modules (if any) in TextileDoc.
  def self.include(*args)
    RedCloth::TextileDoc.send(:include, *args)
  end
  
end

begin
  require 'erb'
  require 'redcloth/erb_extension'
  include ERB::Util
rescue LoadError
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
jeremy-RedCloth-4.1.1 lib/redcloth.rb
BBRedCloth-0.8.8 lib/redcloth.rb
BBRedCloth-0.8.7 lib/redcloth.rb
BBRedCloth-0.8.6 lib/redcloth.rb
BBRedCloth-0.8.5 lib/redcloth.rb
BBRedCloth-0.8.4 lib/redcloth.rb
BBRedCloth-0.8.3 lib/redcloth.rb
BBRedCloth-0.8.2 lib/redcloth.rb
BBRedCloth-0.8.1 lib/redcloth.rb
BBRedCloth-0.8.0 lib/redcloth.rb
RedCloth-4.1.0-x86-mswin32-60 lib/redcloth.rb
RedCloth-4.1.1-x86-mswin32-60 lib/redcloth.rb
RedCloth-4.1.0-universal-java lib/redcloth.rb
RedCloth-4.1.0 lib/redcloth.rb
RedCloth-4.1.1-universal-java lib/redcloth.rb
RedCloth-4.1.9-x86-mswin32-60 lib/redcloth.rb
RedCloth-4.1.9 lib/redcloth.rb
RedCloth-4.1.9-universal-java lib/redcloth.rb
RedCloth-4.1.1 lib/redcloth.rb