Class: Rsxml::Visitor::Context
- Inherits:
-
Object
- Object
- Rsxml::Visitor::Context
- Defined in:
- lib/rsxml/visitor.rb
Instance Attribute Summary collapse
-
#ns_stack ⇒ Object
readonly
Returns the value of attribute ns_stack.
Instance Method Summary collapse
-
#initialize(initial_ns_bindings = nil) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(initial_ns_bindings = nil) ⇒ Context
Returns a new instance of Context.
9 10 11 12 |
# File 'lib/rsxml/visitor.rb', line 9 def initialize(initial_ns_bindings = nil) @ns_stack=[] @ns_stack << initial_ns_bindings if initial_ns_bindings end |
Instance Attribute Details
#ns_stack ⇒ Object (readonly)
Returns the value of attribute ns_stack.
8 9 10 |
# File 'lib/rsxml/visitor.rb', line 8 def ns_stack @ns_stack end |