Class: Xmldsig::Canonicalizer
- Inherits:
-
Object
- Object
- Xmldsig::Canonicalizer
- Defined in:
- lib/xmldsig/canonicalizer.rb
Defined Under Namespace
Classes: UnsupportedException
Instance Attribute Summary collapse
-
#inclusive_namespaces ⇒ Object
Returns the value of attribute inclusive_namespaces.
-
#method ⇒ Object
Returns the value of attribute method.
-
#node ⇒ Object
Returns the value of attribute node.
-
#with_comments ⇒ Object
Returns the value of attribute with_comments.
Instance Method Summary collapse
- #canonicalize ⇒ Object
-
#initialize(node, method = nil, inclusive_namespaces = nil, with_comments = false) ⇒ Canonicalizer
constructor
A new instance of Canonicalizer.
Constructor Details
#initialize(node, method = nil, inclusive_namespaces = nil, with_comments = false) ⇒ Canonicalizer
Returns a new instance of Canonicalizer.
7 8 9 10 11 12 |
# File 'lib/xmldsig/canonicalizer.rb', line 7 def initialize(node, method = nil, inclusive_namespaces = nil, with_comments = false) @node = node @method = method @inclusive_namespaces = inclusive_namespaces @with_comments = with_comments end |
Instance Attribute Details
#inclusive_namespaces ⇒ Object
Returns the value of attribute inclusive_namespaces.
5 6 7 |
# File 'lib/xmldsig/canonicalizer.rb', line 5 def inclusive_namespaces @inclusive_namespaces end |
#method ⇒ Object
Returns the value of attribute method.
5 6 7 |
# File 'lib/xmldsig/canonicalizer.rb', line 5 def method @method end |
#node ⇒ Object
Returns the value of attribute node.
5 6 7 |
# File 'lib/xmldsig/canonicalizer.rb', line 5 def node @node end |
#with_comments ⇒ Object
Returns the value of attribute with_comments.
5 6 7 |
# File 'lib/xmldsig/canonicalizer.rb', line 5 def with_comments @with_comments end |
Instance Method Details
#canonicalize ⇒ Object
14 15 16 |
# File 'lib/xmldsig/canonicalizer.rb', line 14 def canonicalize node.canonicalize(mode(method), inclusive_namespaces, with_comments) end |