Methods in Ruby: objects or not?

Posted by Mladen Jablanovic on Stack Overflow See other posts from Stack Overflow or by Mladen Jablanovic
Published on 2010-04-08T18:06:53Z Indexed on 2010/04/08 18:13 UTC
Read the original article Hit count: 152

Filed under:
|
|
|

Inspired by this discussion, after some googling I wasn't able to find an answer to a pretty simple question regarding methods in Ruby: are they objects or not?

There are different opinions here and there, and I would really like to hear, let's say, an in-depth explanation.

I'm aware of Object#method method, which takes a method name and returns a Method instance, but, on the other hand, there's a similar thing you can do with blocks to make them into Proc instances, and blocks aren't objects, so what makes methods any different?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about methods