Method: RDoc::Attr#definition
- Defined in:
- lib/rdoc/code_object/attr.rb
#definition ⇒ Object
Returns attr_reader, attr_writer or attr_accessor as appropriate.
78 79 80 81 82 83 84 |
# File 'lib/rdoc/code_object/attr.rb', line 78 def definition case @rw when 'RW' then 'attr_accessor' when 'R' then 'attr_reader' when 'W' then 'attr_writer' end end |