Class: FFI::Clang::FullComment

Inherits:
Comment
  • Object
show all
Defined in:
lib/ffi/clang/comment.rb

Instance Method Summary collapse

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

#textObject



277
278
279
# File 'lib/ffi/clang/comment.rb', line 277

def text
	self.children.collect{|child| child.text.strip}.join("\n")
end

#to_htmlObject



269
270
271
# File 'lib/ffi/clang/comment.rb', line 269

def to_html
	Lib.extract_string Lib.full_comment_get_as_html(@comment)
end

#to_xmlObject



273
274
275
# File 'lib/ffi/clang/comment.rb', line 273

def to_xml
	Lib.extract_string Lib.full_comment_get_as_xml(@comment)
end