From: Jason Garber Date: 2009-02-21T04:48:49+09:00 Subject: Re: How to do conditional compile for Ruby 1.9 in a C extens I ended up sidestepping the whole issue completely and writing a new accessor, #formatter_methods, that just returned singleton_methods.map! {|method| method.to_sym }. The reasons for needing #singleton_methods and not #respond_to? or #method_defined? are hard to explain, but you can probably understand it fairly quickly by looking at the source: http://github.com/jgarber/redcloth/commit/c941af12fff3f93154578c160aed0727be98dff0 A macro would've been nice, but it worked out okay for me anyway. Thanks for your help! Jason -- Posted via http://www.ruby-forum.com/.