Module: FastSlice
- Defined in:
- lib/fast_slice/version.rb
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.define_on_hash ⇒ Object
61 62 63 64 65 66 |
# File 'ext/fast_slice/fast_slice.c', line 61
static VALUE
rb_define_hash_slice_m(void)
{
rb_define_method(rb_cHash, "slice", rb_fast_slice, -1);
return Qtrue;
}
|
.slice(*args) ⇒ Object
45 46 47 48 49 50 51 |
# File 'ext/fast_slice/fast_slice.c', line 45
VALUE
rb_fast_slice_m(int argc, VALUE *argv, VALUE self)
{
VALUE hash, args;
rb_scan_args(argc, argv, "1*", &hash, &args);
return fast_slice(hash, args);
}
|
Instance Method Details
#slice(*args) ⇒ Object
53 54 55 56 57 58 59 |
# File 'ext/fast_slice/fast_slice.c', line 53
VALUE
rb_fast_slice(int argc, VALUE *argv, VALUE self)
{
VALUE args;
rb_scan_args(argc, argv, "0*", &args);
return fast_slice(self, args);
}
|