One liner to list query methods for an object
1 2 puts Object.methods.sort.join("\n").grep(/\?/)
DZone Snippets > MarkStevenWoods > query
12734 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
1 2 puts Object.methods.sort.join("\n").grep(/\?/)