Class: Katana::QualifiedName

Inherits:
Object
  • Object
show all
Defined in:
ext/katana/rb_katana_selector.c

Instance Method Summary collapse

Instance Method Details

#localString?

Returns:

  • (String, nil)


11
12
13
14
15
16
17
18
19
# File 'ext/katana/rb_katana_selector.c', line 11

VALUE rb_name_local(VALUE self)
{
  KatanaQualifiedName *c_name;
  Data_Get_Struct(self, KatanaQualifiedName, c_name);
  if (c_name->local)
    return UTF8_STR_NEW(c_name->local);
  else
    return Qnil;
}

#prefixString?

Returns:

  • (String, nil)


24
25
26
27
28
29
30
31
32
# File 'ext/katana/rb_katana_selector.c', line 24

VALUE rb_name_prefix(VALUE self)
{
  KatanaQualifiedName *c_name;
  Data_Get_Struct(self, KatanaQualifiedName, c_name);
  if (c_name->prefix)
    return UTF8_STR_NEW(c_name->prefix);
  else
    return Qnil;
}

#uriString?

Returns:

  • (String, nil)


37
38
39
40
41
42
43
44
45
# File 'ext/katana/rb_katana_selector.c', line 37

VALUE rb_name_uri(VALUE self)
{
  KatanaQualifiedName *c_name;
  Data_Get_Struct(self, KatanaQualifiedName, c_name);
  if (c_name->uri)
    return UTF8_STR_NEW(c_name->uri);
  else
    return Qnil;
}