Module: Tame
- Defined in:
- ext/tame/tame.c
Instance Method Summary collapse
Instance Method Details
#tame(*args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'ext/tame/tame.c', line 6
static VALUE rb_tame(int argc, VALUE *argv, VALUE self) {
/* required for ruby to work */
int tame_flags = TAME_STDIO;
int i;
VALUE v;
for(i = 0; i < argc; i++) {
v = rb_hash_aref(cTameFlags, argv[i]);
if (RTEST(v) == 0) {
rb_raise(rb_eArgError, "unsupported tame argument");
}
tame_flags |= FIX2INT(v);
}
tame(tame_flags);
return Qnil;
}
|