Sha256: 2ea57e20d99a820fa34c099ebb379923de9afa8e0be8f8286b2813f0e5cbe156

Contents?: true

Size: 1.08 KB

Versions: 10

Compression:

Stored size: 1.08 KB

Contents

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

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

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

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

      def filename=(value)
        warn("SaxParser.filename is deprecated.  Use SaxParser#file instead.")
        self.file = value
      end

      def file
        input.file
      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

10 entries across 10 versions & 1 rubygems

Version Path
libxml-ruby-0.9.3-x86-mswin32-60 lib/libxml/sax_parser.rb
libxml-ruby-0.9.3 lib/libxml/sax_parser.rb
libxml-ruby-0.9.4-x86-mswin32-60 lib/libxml/sax_parser.rb
libxml-ruby-0.9.6 lib/libxml/sax_parser.rb
libxml-ruby-0.9.6-x86-mswin32-60 lib/libxml/sax_parser.rb
libxml-ruby-0.9.4 lib/libxml/sax_parser.rb
libxml-ruby-0.9.5 lib/libxml/sax_parser.rb
libxml-ruby-0.9.5-x86-mswin32-60 lib/libxml/sax_parser.rb
libxml-ruby-0.9.7-x86-mswin32-60 lib/libxml/sax_parser.rb
libxml-ruby-0.9.7 lib/libxml/sax_parser.rb