Class: XSD::NS::Assigner

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

Instance Method Summary collapse

Constructor Details

#initializeAssigner

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