type()
Returns attr_reader, attr_writer or attr_accessor as appropriate
# File lib/rdoc/attr.rb, line 169 def type case @rw when 'RW' then 'attr_accessor' when 'R' then 'attr_reader' when 'W' then 'attr_writer' end end