Class: FFI::Clang::InlineCommandComment

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

#argsObject



163
164
165
166
167
# File 'lib/ffi/clang/comment.rb', line 163

def args
	num_args.times.map { |i|
		Lib.extract_string Lib.inline_command_comment_get_arg_text(@comment, i)
	}
end

#nameObject



151
152
153
# File 'lib/ffi/clang/comment.rb', line 151

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

#num_argsObject



159
160
161
# File 'lib/ffi/clang/comment.rb', line 159

def num_args
	Lib.inline_command_comment_get_num_args(@comment)
end

#render_kindObject



155
156
157
# File 'lib/ffi/clang/comment.rb', line 155

def render_kind
	Lib.inline_command_comment_get_render_kind(@comment)
end

#textObject



169
170
171
# File 'lib/ffi/clang/comment.rb', line 169

def text
	args.join
end