Class: Object
- Inherits:
- BasicObject
- Defined in:
- (unknown)
Instance Method Summary collapse
Instance Method Details
#femme_fatale(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'ext/femme_fatale.c', line 3 static VALUE femme_fatale(int argc, VALUE *argv, VALUE obj) { VALUE msg = Qnil; const char *cmsg = NULL; (void)obj; rb_scan_args(argc, argv, "01", &msg); if (RTEST(msg)) { cmsg = RSTRING_PTR(msg); } else { cmsg = "femme fatale!"; } rb_fatal(cmsg); return 0; /* never reached */ } |