aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--re.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a8633d76c..e767e1d1a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Nov 26 17:32:16 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (Init_Regexp): new method Regexp#fixed_encoding?
+
Mon Nov 26 13:28:14 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
* lib/complex.rb: be able to create Complex(0, -0.0). [ruby-list:44268]
diff --git a/re.c b/re.c
index 887adc93a3..0184c18e72 100644
--- a/re.c
+++ b/re.c
@@ -2198,6 +2198,7 @@ Init_Regexp(void)
rb_define_method(rb_cRegexp, "casefold?", rb_reg_casefold_p, 0);
rb_define_method(rb_cRegexp, "options", rb_reg_options_m, 0);
rb_define_method(rb_cRegexp, "encoding", rb_obj_encoding, 0); /* in encoding.c */
+ rb_define_method(rb_cRegexp, "fixed_encoding?", rb_reg_fixed_encoding_p, 0);
rb_define_const(rb_cRegexp, "IGNORECASE", INT2FIX(ONIG_OPTION_IGNORECASE));
rb_define_const(rb_cRegexp, "EXTENDED", INT2FIX(ONIG_OPTION_EXTEND));