ninjudd-tuple 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/ext/tuple.c +0 -5
- metadata +1 -1
data/VERSION.yml
CHANGED
data/ext/tuple.c
CHANGED
@@ -223,10 +223,6 @@ static VALUE tuple_load(VALUE self, VALUE data) {
|
|
223
223
|
return tuple_parse(&ptr, RSTRING_LEN(data));
|
224
224
|
}
|
225
225
|
|
226
|
-
static VALUE array_compare(VALUE self, VALUE other) {
|
227
|
-
return rb_funcall(tuple_dump(mTuple, self), rb_intern("<=>"), 1, tuple_dump(mTuple, other));
|
228
|
-
}
|
229
|
-
|
230
226
|
VALUE mTuple;
|
231
227
|
void Init_tuple() {
|
232
228
|
rb_require("time");
|
@@ -236,5 +232,4 @@ void Init_tuple() {
|
|
236
232
|
mTuple = rb_define_module("Tuple");
|
237
233
|
rb_define_module_function(mTuple, "dump", tuple_dump, 1);
|
238
234
|
rb_define_module_function(mTuple, "load", tuple_load, 1);
|
239
|
-
rb_define_method(rb_cArray, "<=>", array_compare, 1);
|
240
235
|
}
|