Class: XSD::NS::Assigner

Inherits:
Object
  • Object
show all
Defined in:
lib/xsd/ns.rb

Instance Method Summary collapse

Constructor Details

#initializeAssigner

Returns a new instance of Assigner.



17
18
19
# File 'lib/xsd/ns.rb', line 17

def initialize
  @count = 0
end

Instance Method Details

#assign(ns) ⇒ Object



21
22
23
24
# File 'lib/xsd/ns.rb', line 21

def assign(ns)
  @count += 1
  "n#{@count}"
end