Lesha Pipiev Lesha Pipiev - 6 months ago 23
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

Update:

Misunderstand you question. The method itself defined as private:

Module.private_instance_methods.include? :attr_accessor
=> true
Comments