Method: RDoc::Attr#initialize
- Defined in:
- lib/rdoc/code_object/attr.rb
#initialize(text, name, rw, comment, singleton = false) ⇒ Attr
Creates a new Attr with body text
, name
, read/write status rw
and comment
. singleton
marks this as a class attribute.
25 26 27 28 29 30 31 |
# File 'lib/rdoc/code_object/attr.rb', line 25 def initialize(text, name, rw, comment, singleton = false) super text, name @rw = rw @singleton = singleton self.comment = comment end |