oga/lib/oga.rb

28 lines
845 B
Ruby
Raw Normal View History

require 'set'
2014-02-26 18:54:11 +00:00
# Load these first so that the native extensions don't have to define the
# Oga::XML namespace.
require_relative 'oga/xml/lexer'
require_relative 'oga/xml/parser'
require_relative 'oga/xml/pull_parser'
# JRuby is dumb as a brick and can only load .jar files using require() when
# ./lib is in the LOAD_PATH. require_relative, or any other form that uses
# absolute paths, does not work.
unless $:.include?(File.expand_path('../', __FILE__))
$:.unshift(File.expand_path('../', __FILE__))
end
require 'liboga'
require_relative 'oga/xml/node'
require_relative 'oga/xml/element'
2014-03-28 07:59:48 +00:00
require_relative 'oga/xml/document'
require_relative 'oga/xml/text'
require_relative 'oga/xml/comment'
require_relative 'oga/xml/cdata'
require_relative 'oga/xml/xml_declaration'
2014-04-03 20:44:00 +00:00
require_relative 'oga/xml/doctype'
require_relative 'oga/html/parser'