Class: Object::Syck::BadAlias
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#<=> ⇒ Object
YAML::Syck::BadAlias.<=>.
-
#initialize ⇒ Object
constructor
YAML::Syck::BadAlias.initialize.
Constructor Details
#initialize ⇒ Object
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
#name ⇒ Object
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;
}
|