class Xmms::Collection::Operands
Public Class Methods
new(p1)
click to toggle source
static VALUE c_operands_init (VALUE self, VALUE collection) { rb_iv_set (self, "collection", collection); return self; }
Public Instance Methods
delete(p1)
click to toggle source
static VALUE c_operands_delete (VALUE self, VALUE arg) { RbCollection *coll = NULL, *coll2 = NULL; VALUE tmp; tmp = rb_iv_get (self, "collection"); Data_Get_Struct (tmp, RbCollection, coll); Data_Get_Struct (arg, RbCollection, coll2); xmmsv_coll_remove_operand (coll->real, coll2->real); return Qnil; }
each()
click to toggle source
static VALUE c_operands_each (VALUE self) { RbCollection *coll = NULL; xmmsv_t *operands_list; VALUE tmp; tmp = rb_iv_get (self, "collection"); Data_Get_Struct (tmp, RbCollection, coll); operands_list = xmmsv_coll_operands_get (coll->real); xmmsv_list_foreach (operands_list, operands_each, NULL); return self; }
push(p1)
click to toggle source
static VALUE c_operands_push (VALUE self, VALUE arg) { RbCollection *coll = NULL, *coll2 = NULL; VALUE tmp; tmp = rb_iv_get (self, "collection"); Data_Get_Struct (tmp, RbCollection, coll); Data_Get_Struct (arg, RbCollection, coll2); xmmsv_coll_add_operand (coll->real, coll2->real); return self; }
Also aliased as: <<