lib/junoser/xsd/base.rb in junoser-0.2.13 vs lib/junoser/xsd/base.rb in junoser-0.3.0
- old
+ new
@@ -37,9 +37,13 @@
def oneliner?
@oneliner ||= !xml.xpath('./xsd:annotation/xsd:appinfo/flag[text()="oneliner"]').empty?
end
+ def nokeyword?
+ @nokeyword ||= !xml.xpath('./xsd:annotation/xsd:appinfo/flag[text()="nokeyword"]').empty?
+ end
+
def has_single_child_of?(klass)
config.size == 1 && config.first.is_a?(klass)
end
def format(header, content=nil, footer=nil)