123456789_123456789_123456789_123456789_123456789_

Class: LibXML::XML::Schema::Attribute

Relationships & Source Files
Inherits: Object
Defined in: ext/libxml/ruby_xml_schema_attribute.c,
lib/libxml/schema/attribute.rb

Constant Summary

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#namespace (readonly)

[ GitHub ]

#occurs (readonly)

[ GitHub ]

#required?Boolean (readonly)

[ GitHub ]

  
# File 'lib/libxml/schema/attribute.rb', line 13

def required?
  occurs == REQUIRED
end

#type (readonly)

[ GitHub ]

#value (readonly)

[ GitHub ]

Instance Method Details

#default

[ GitHub ]

  
# File 'lib/libxml/schema/attribute.rb', line 9

def default
  node['default']
end

#node

[ GitHub ]

  
# File 'ext/libxml/ruby_xml_schema_attribute.c', line 88

static VALUE rxml_schema_attribute_node(VALUE self)
{
  xmlSchemaAttributeUsePtr attr;

  Data_Get_Struct(self, xmlSchemaAttributeUse, attr);

  return rxml_node_wrap(attr->node);
}