Class: Object::Syck::BadAlias

Inherits:
Object
  • Object
show all
Defined in:
rubyext.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

YAML::Syck::BadAlias.initialize



1340
1341
1342
1343
1344
1345
# File 'rubyext.c', line 1340

VALUE
syck_badalias_initialize(VALUE self, VALUE val)
{
    rb_iv_set( self, "@name", val );
    return self;
}

Instance Attribute Details

#nameObject

Instance Method Details

#<=>Object

YAML::Syck::BadAlias.<=>



1350
1351
1352
1353
1354
1355
1356
1357
# File 'rubyext.c', line 1350

VALUE
syck_badalias_cmp(VALUE alias1, VALUE alias2)
{
    VALUE str1 = rb_ivar_get( alias1, s_name );
    VALUE str2 = rb_ivar_get( alias2, s_name );
    VALUE val = rb_funcall( str1, s_cmp, 1, str2 );
    return val;
}