Module: Saxon::XSLT::StaticContext::Common

Included in:
Saxon::XSLT::StaticContext, DSL
Defined in:
lib/saxon/xslt/static_context.rb

Overview

methods used by both Saxon::XSLT::StaticContext and DSL

Instance Method Summary collapse

Instance Method Details

#args_hashHash<Symbol => Hash,null>

returns the context details in a hash suitable for initializing a new one

Returns:

  • (Hash<Symbol => Hash,null>)

    the args hash



17
18
19
20
21
# File 'lib/saxon/xslt/static_context.rb', line 17

def args_hash
  {
    default_collation: @default_collation
  }
end

#initialize(args = {}) ⇒ Object

Parameters:

  • args (Hash) (defaults to: {})

Options Hash (args):

  • :declared_collations (Hash<String => java.text.Collator>)

    Hash of URI => Collator bindings

  • :default_collation (String)

    URI of the default collation



11
12
13
# File 'lib/saxon/xslt/static_context.rb', line 11

def initialize(args = {})
  @default_collation = args.fetch(:default_collation, nil).freeze
end