lib/junoser/xsd/restriction.rb in junoser-0.2.2 vs lib/junoser/xsd/restriction.rb in junoser-0.2.3
- old
+ new
@@ -18,16 +18,16 @@
when 'enumeration'
Junoser::Xsd::Enumeration.new(child, depth: @depth+1)
else
raise "ERROR: unknown element: #{child.name}"
end
- }.compact
+ }
end
def to_s
return format('arg') if config.empty?
- str = '(' + config.map {|c| c.to_s.strip }.compact.join(' | ') + ')'
+ str = '(' + config.map {|c| c.to_s.strip }.join(' | ') + ')'
format(str)
end
end
end
end