Class: Saxon::ParseOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/saxon/parse_options.rb

Overview

Wraps the net.sf.saxon.lib.ParseOptions class, which holds default options to be passed to the parser

Instance Method Summary collapse

Constructor Details

#initialize(parse_options = nil) ⇒ ParseOptions

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ParseOptions.

Parameters:

  • parse_options (net.sf.saxon.lib.ParseOptions, nil) (defaults to: nil)

    The Saxon ParseOptions instance to wrap



13
14
15
# File 'lib/saxon/parse_options.rb', line 13

def initialize(parse_options = nil)
  @parse_options = parse_options || Saxon::S9API::ParseOptions.new
end

Instance Method Details

#featuresSaxon::ParseOptions::ParserFeatures

Provide hash-like access to SAX parser features

Returns:

  • (Saxon::ParseOptions::ParserFeatures)

    the features object



25
26
27
# File 'lib/saxon/parse_options.rb', line 25

def features
  @features ||= ParserFeatures.new(parse_options)
end

#propertiesSaxon::ParseOptions::ParserProperties

Provide hash-like access to SAX parser properties

Returns:

  • (Saxon::ParseOptions::ParserProperties)

    the properties object



19
20
21
# File 'lib/saxon/parse_options.rb', line 19

def properties
  @properties ||= ParserProperties.new(parse_options)
end