class RDoc::Generator::Mdoc::Attribute
Attributes
rdoc_attribute[R]
Public Class Methods
new(rdoc_attribute)
click to toggle source
# File lib/rdoc/generator/mdoc/attribute.rb, line 5 def initialize(rdoc_attribute) @rdoc_attribute = rdoc_attribute end
Public Instance Methods
described?()
click to toggle source
# File lib/rdoc/generator/mdoc/attribute.rb, line 17 def described? !description.empty? end
description()
click to toggle source
# File lib/rdoc/generator/mdoc/attribute.rb, line 21 def description comment.mdoc_formatted_content end
name()
click to toggle source
# File lib/rdoc/generator/mdoc/attribute.rb, line 9 def name rdoc_attribute.name end
rw()
click to toggle source
# File lib/rdoc/generator/mdoc/attribute.rb, line 13 def rw rdoc_attribute.rw end
Private Instance Methods
comment()
click to toggle source
# File lib/rdoc/generator/mdoc/attribute.rb, line 27 def comment @comment ||= Comment.new(rdoc_attribute.comment) end