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



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

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

#nameObject



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

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

#num_argsObject



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

def num_args
	Lib.block_command_comment_get_num_args(@comment)
end

#paragraphObject



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

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

#textObject Also known as: comment



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

def text
	self.paragraph.text
end