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



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

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

#nameObject



139
140
141
# File 'lib/ffi/clang/comment.rb', line 139

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

#num_argsObject



147
148
149
# File 'lib/ffi/clang/comment.rb', line 147

def num_args
	Lib.inline_command_comment_get_num_args(@comment)
end

#render_kindObject



143
144
145
# File 'lib/ffi/clang/comment.rb', line 143

def render_kind
	Lib.inline_command_comment_get_render_kind(@comment)
end

#textObject



157
158
159
# File 'lib/ffi/clang/comment.rb', line 157

def text
	args.join
end