diff --git a/complex.c b/complex.c index 7a9c56d..ad1ea85 100644 --- a/complex.c +++ b/complex.c @@ -2234,6 +2234,7 @@ Init_Complex(void) rb_undef_method(rb_cComplex, ">"); rb_undef_method(rb_cComplex, ">="); rb_undef_method(rb_cComplex, "between?"); + rb_undef_method(rb_cComplex, "clamp"); rb_undef_method(rb_cComplex, "div"); rb_undef_method(rb_cComplex, "divmod"); rb_undef_method(rb_cComplex, "floor"); diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 93d24a1..2f21c10 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -755,6 +755,7 @@ def test_respond assert_equal(false, c.respond_to?(:>)) assert_equal(false, c.respond_to?(:>=)) assert_equal(false, c.respond_to?(:between?)) + assert_equal(false, c.respond_to?(:clamp)) assert_equal(false, c.respond_to?(:div)) assert_equal(false, c.respond_to?(:divmod)) assert_equal(false, c.respond_to?(:floor))