Class: XSD::NS::Assigner
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/action_web_service/xsd/ns.rb', line 17 def initialize @count = 0 end |
Instance Method Details
#assign(ns) ⇒ Object
21 22 23 24 |
# File 'lib/action_web_service/xsd/ns.rb', line 21 def assign(ns) @count += 1 "n#{@count}" end |