SyntaxFix
Write A Post
Hire A Developer
Questions
TestClass.methods(false)
to get only methods that belong to that class only.
TestClass.instance_methods(false) would return the methods from your given example (since they are instance methods of TestClass).
TestClass.instance_methods(false)