One liner to list query methods for an object
puts Object.methods.sort.join("\n").grep(/\?/)
DZone Snippets > MarkStevenWoods
12364 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Mark Woods http://www.arenewingmind.com
puts Object.methods.sort.join("\n").grep(/\?/)
puts Object.new.methods.sort