Class: FFI::Clang::ParagraphComment
- Defined in:
- lib/ffi/clang/comment.rb
Overview
Represents a paragraph comment containing text and inline content.
Instance Method Summary collapse
-
#text ⇒ Object
Get the text content by joining all child text with newlines.
Methods inherited from Comment
build_from, #child, #children, #each, #has_trailing_newline?, #initialize, #kind, #num_children, #whitespace?
Constructor Details
This class inherits a constructor from FFI::Clang::Comment
Instance Method Details
#text ⇒ Object
Get the text content by joining all child text with newlines.
167 168 169 |
# File 'lib/ffi/clang/comment.rb', line 167 def text self.map(&:text).join("\n") end |