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



265
266
267
# File 'lib/ffi/clang/comment.rb', line 265

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

#to_htmlObject



257
258
259
# File 'lib/ffi/clang/comment.rb', line 257

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

#to_xmlObject



261
262
263
# File 'lib/ffi/clang/comment.rb', line 261

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