Class: LibXML::XML::Schema::Attribute
- Inherits:
-
Object
- Object
- LibXML::XML::Schema::Attribute
- Defined in:
- lib/libxml/schema/attribute.rb,
ext/libxml/ruby_xml_schema_attribute.c
Constant Summary collapse
- REQUIRED =
1
- OPTIONAL =
2
Instance Attribute Summary collapse
- #name ⇒ Object readonly
- #namespace ⇒ Object readonly
- #occurs ⇒ Object readonly
- #type ⇒ Object readonly
- #value ⇒ Object readonly
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
#namespace ⇒ Object (readonly)
#occurs ⇒ Object (readonly)
#type ⇒ Object (readonly)
#value ⇒ Object (readonly)
Instance Method Details
#default ⇒ Object
9 10 11 |
# File 'lib/libxml/schema/attribute.rb', line 9 def default node['default'] end |
#node ⇒ Object
88 89 90 91 92 93 94 95 |
# 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);
}
|
#required? ⇒ Boolean
13 14 15 |
# File 'lib/libxml/schema/attribute.rb', line 13 def required? occurs == REQUIRED end |