module ActionText

def self.deprecator # :nodoc:

:nodoc:
def self.deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end

def self.gem_version

Returns the currently loaded version of Action Text as a `Gem::Version`.
def self.gem_version
  Gem::Version.new VERSION::STRING
end

def self.version

Returns the currently loaded version of Action Text as a `Gem::Version`.
def self.version
  gem_version
end

def html_document_class

def html_document_class
  return @html_document_class if defined?(@html_document_class)
  @html_document_class =
    defined?(Nokogiri::HTML5) ? Nokogiri::HTML5::Document : Nokogiri::HTML4::Document
end

def html_document_fragment_class

def html_document_fragment_class
  return @html_document_fragment_class if defined?(@html_document_fragment_class)
  @html_document_fragment_class =
    defined?(Nokogiri::HTML5) ? Nokogiri::HTML5::DocumentFragment : Nokogiri::HTML4::DocumentFragment
end