Class: Saxon::XSLT::StaticContext

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/saxon/xslt/static_context.rb

Overview

Represents the static context for an XSLT compiler. StaticContexts are immutable.

Defined Under Namespace

Modules: Common Classes: DSL

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common

#args_hash, #initialize

Instance Attribute Details

#default_collationObject (readonly)

Returns the value of attribute default_collation.



62
63
64
# File 'lib/saxon/xslt/static_context.rb', line 62

def default_collation
  @default_collation
end

Class Method Details

.define(block) ⇒ Saxon::XSLT::StaticContext

Executes the Proc/lambda passed in with a new instance of Saxon::XSLT::StaticContext as self, allowing the DSL methods to be called in a DSL-ish way

Parameters:

  • block (Proc)

    the block of DSL calls to be executed

Returns:



58
59
60
# File 'lib/saxon/xslt/static_context.rb', line 58

def self.define(block)
  DSL.define(block)
end

Instance Method Details

#define(block) ⇒ Object



64
65
66
# File 'lib/saxon/xslt/static_context.rb', line 64

def define(block)
  DSL.define(block, args_hash)
end