Class: Rsxml::Visitor::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/rsxml/visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stackObject (readonly)

Returns the value of attribute ns_stack.



8
9
10
# File 'lib/rsxml/visitor.rb', line 8

def ns_stack
  @ns_stack
end