class LibXML::XML::Schema::Attribute

Constants

OPTIONAL
REQUIRED

Public Instance Methods

default() click to toggle source
# File lib/libxml/schema/attribute.rb, line 8
def default
  node['default']
end
required?() click to toggle source
# File lib/libxml/schema/attribute.rb, line 12
def required?
  occurs == REQUIRED
end