Method: RDoc::Attr#pretty_print

Defined in:
lib/rdoc/code_object/attr.rb

#pretty_print(q) ⇒ Object

:nodoc:



151
152
153
154
155
156
157
158
159
160
# File 'lib/rdoc/code_object/attr.rb', line 151

def pretty_print q # :nodoc:
  q.group 2, "[#{self.class.name} #{full_name} #{rw} #{visibility}", "]" do
    unless comment.empty? then
      q.breakable
      q.text "comment:"
      q.breakable
      q.pp @comment
    end
  end
end