Sha256: d575af2aae3d187f1158725411950669fe389bbc113d88362fbfe37a70dfd4ba

Contents?: true

Size: 976 Bytes

Versions: 6

Compression:

Stored size: 976 Bytes

Contents

module LibXML
  module XML
    class HTMLParser
      def self.file(value)
        parser = Parser.new
        parser.input.file = value
        parser
      end

      def self.string(value)
        parser = Parser.new
        parser.input.string = value
        parser
      end

      def self.document(value)
        parser = Parser.new
        parser.input.document = value
        parser
      end

      def self.io(value)
        parser = Parser.new
        parser.input.io = value
        parser
      end

      def file
        input.filename
      end

      def file=(value)
        input.file = value
      end

      def string
        input.string
      end

      def string=(value)
        input.string = value
      end

      def document
        input.document
      end

      def document=(value)
        input.document = value
      end

      def io
        input.io
      end

      def io=(value)
        input.io = value
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
libxml-ruby-0.9.1 lib/libxml/html_parser.rb
libxml-ruby-0.9.2 lib/libxml/html_parser.rb
libxml-ruby-0.9.1-x86-mswin32-60 lib/libxml/html_parser.rb
libxml-ruby-0.9.0 lib/libxml/html_parser.rb
libxml-ruby-0.9.0-x86-mswin32-60 lib/libxml/html_parser.rb
libxml-ruby-0.9.2-x86-mswin32-60 lib/libxml/html_parser.rb