Class: FFI::Clang::BlockCommandComment

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



193
194
195
196
197
# File 'lib/ffi/clang/comment.rb', line 193

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

#nameObject



176
177
178
# File 'lib/ffi/clang/comment.rb', line 176

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

#num_argsObject



189
190
191
# File 'lib/ffi/clang/comment.rb', line 189

def num_args
	Lib.block_command_comment_get_num_args(@comment)
end

#paragraphObject



180
181
182
# File 'lib/ffi/clang/comment.rb', line 180

def paragraph
	Comment.build_from Lib.block_command_comment_get_paragraph(@comment)
end

#textObject Also known as: comment



184
185
186
# File 'lib/ffi/clang/comment.rb', line 184

def text
	self.paragraph.text
end