Class: FFI::Clang::HTMLTagComment

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

Overview

Represents an HTML tag in a documentation comment.

Direct Known Subclasses

HTMLEndTagComment, HTMLStartTagComment

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

#nameObject Also known as: tag

Get the name of the HTML tag.



127
128
129
# File 'lib/ffi/clang/comment.rb', line 127

def name
	Lib.extract_string Lib.html_tag_comment_get_tag_name(@comment)
end

#textObject

Get the text representation of this HTML tag.



134
135
136
# File 'lib/ffi/clang/comment.rb', line 134

def text
	Lib.extract_string Lib.html_tag_comment_get_as_string(@comment)
end