Lesha Pipiev Lesha Pipiev - 1 year ago 116
Ruby Question

Can't find attire_accessor in Module

On the one hand Module#attr_accessor.

On the other hand:

Module.instance_methods.include? :attr_accessor
=> false

So where is #attr_accessor method actually defined?

Answer Source


Misunderstand you question. The method itself defined as private:

Module.private_instance_methods.include? :attr_accessor
=> true
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download