Class: XSD::NS::Assigner
- Inherits:
-
Object
- Object
- XSD::NS::Assigner
- Defined in:
- lib/xsd/ns.rb
Instance Method Summary collapse
- #assign(ns) ⇒ Object
-
#initialize ⇒ Assigner
constructor
A new instance of Assigner.
Constructor Details
#initialize ⇒ Assigner
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 |