Hi, At Fri, 20 Feb 2009 02:21:24 +0900, Jason Garber wrote in [ruby-talk:328775]: > I'm working on updating RedCloth for Ruby 1.9. Since the output of > #singleton_methods changed from strings to symbols, I think I need a > conditional compile. Here's what I tried: The output? You convert the argument. > #if RUBY_VERSION < 0x10900 > if (rb_ary_includes(rb_funcall(self, rb_intern("singleton_methods"), > 0), btype)) { > #else > if (rb_ary_includes(rb_funcall(self, rb_intern("singleton_methods"), > 0), rb_str_intern(btype))) { > #endif And #singleton_methods takes a flag, anything not only string and symbol can be true. -- Nobu Nakada