Sha256: c4e01b0ab351e5ccf680b38e884f9850a83ded3cf4d2f53ee6b624d6d1b76a94
Contents?: true
Size: 636 Bytes
Versions: 11
Compression:
Stored size: 636 Bytes
Contents
#include "../cs__common/cs__common.h" #include "ruby.h" #include <ruby/re.h> static VALUE dummy_regexp; static VALUE test_regexp; VALUE rb_equal_squiggle(const int argc, const VALUE *argv) { return rb_call_super(argc, argv); } void rb_force_prepend(void) { rb_prepend_module(rb_cRegexp, dummy_regexp); } void Init_cs__assess_test(void) { test_regexp = rb_define_module("ForcePrepend"); rb_define_singleton_method(test_regexp, "cs__force_prepend", rb_force_prepend, 0); dummy_regexp = rb_define_module("DummyMod"); rb_define_method(dummy_regexp, "=~", rb_equal_squiggle, -1); }
Version data entries
11 entries across 11 versions & 1 rubygems