Module: Saxon::XSLT::EvaluationContext::Common Private
- Included in:
- Saxon::XSLT::EvaluationContext, DSL
- Defined in:
- lib/saxon/xslt/evaluation_context.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
methods used by both Saxon::XSLT::EvaluationContext and DSL
Instance Method Summary collapse
-
#args_hash ⇒ Hash<Symbol => Hash,null>
private
returns the context details in a hash suitable for initializing a new one.
- #initialize(args = {}) ⇒ Object private
Instance Method Details
#args_hash ⇒ Hash<Symbol => Hash,null>
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 the context details in a hash suitable for initializing a new one
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 27 def args_hash check_for_clashing_parameters! { default_collation: @default_collation, static_parameters: @static_parameters, global_parameters: @global_parameters, initial_template_parameters: @initial_template_parameters, initial_template_tunnel_parameters: @initial_template_tunnel_parameters } end |
#initialize(args = {}) ⇒ Object
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.
17 18 19 20 21 22 23 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 17 def initialize(args = {}) @default_collation = args.fetch(:default_collation, nil).freeze @static_parameters = args.fetch(:static_parameters, {}).freeze @global_parameters = args.fetch(:global_parameters, {}).freeze @initial_template_parameters = args.fetch(:initial_template_parameters, {}).freeze @initial_template_tunnel_parameters = args.fetch(:initial_template_tunnel_parameters, {}).freeze end |