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



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

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

#nameObject



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

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

#num_argsObject



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

def num_args
	Lib.block_command_comment_get_num_args(@comment)
end

#paragraphObject



167
168
169
# File 'lib/ffi/clang/comment.rb', line 167

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

#textObject Also known as: comment



171
172
173
# File 'lib/ffi/clang/comment.rb', line 171

def text
	self.paragraph.text
end