lib/junoser/xsd/enumeration.rb in junoser-0.2.2 vs lib/junoser/xsd/enumeration.rb in junoser-0.2.3
- old
+ new
@@ -10,14 +10,14 @@
end
def config
raise "ERROR: unknown Enumeration format" if children.size > 1
- has_match? ? 'arg' : %["#{xml['value']}"]
+ has_match? ? ['arg'] : [%["#{xml['value']}"]]
end
def to_s
- format(OFFSET + config)
+ format(OFFSET + config.first)
end
private