Class: LibXML::XML::Schema::Facet

Inherits:
Object
  • Object
show all
Defined in:
ext/libxml/ruby_xml_schema_facet.c

Instance Method Summary collapse

Instance Method Details

#kindObject



32
33
34
35
36
37
38
39
# File 'ext/libxml/ruby_xml_schema_facet.c', line 32

static VALUE rxml_schema_facet_kind(VALUE self)
{
  xmlSchemaFacetPtr facet;

  Data_Get_Struct(self, xmlSchemaFacet, facet);

  return INT2NUM(facet->type);
}

#nodeObject

START FACET



14
15
16
17
18
19
20
21
# File 'ext/libxml/ruby_xml_schema_facet.c', line 14

static VALUE rxml_schema_facet_node(VALUE self)
{
  xmlSchemaFacetPtr facet;

  Data_Get_Struct(self, xmlSchemaFacet, facet);

  return rxml_node_wrap(facet->node);
}

#valueObject



23
24
25
26
27
28
29
30
# File 'ext/libxml/ruby_xml_schema_facet.c', line 23

static VALUE rxml_schema_facet_value(VALUE self)
{
  xmlSchemaFacetPtr facet;

  Data_Get_Struct(self, xmlSchemaFacet, facet);

  QNIL_OR_STRING(facet->value)
}