Hello ruby-talk.

I hope this isn't a too silly question, but: who respond_to? true at
attr_accessor?

irb(main):028:0> Module.respond_to?(:to_s)
=> true
irb(main):029:0> Module.respond_to?(:attr_accessor)
=> false
irb(main):030:0> Module.respond_to?(:attr)
=> false

I understand it's a class_macro in Module#attr_accessor...
#attr_accessor, #attr_reader, #attr_writer


Thanks to all.

e.

-- 
[email protected] | 
https://groups.google.com/d/forum/ruby-talk-google?hl=en


Reply via email to