> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/r/reflection/list_methods.md). Agents can also search and read this documentation through its [MCP server](https://trizen.gitbook.io/sidef-lang/~gitbook/mcp).

# List methods

The super-method *Object.methods()* returns an Hash with method names as keys and *LazyMethod* objects as values. Each *LazyMethod* can be called with zero or more arguments, internally invoking the method on the object on which *.methods* was called.

```ruby
class Example {
    method foo { }
    method bar(arg) { say "bar(#{arg})" }
}
 
var obj = Example()
say obj.methods.keys.sort          #=> ["bar", "call", "foo", "new"]
 
var meth = obj.methods.item(:bar)  # `LazyMethod` representation for `obj.bar()`
meth(123)                          # calls obj.bar()
```
