Class: FFI::Clang::ParamCommandComment

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

#directionObject



210
211
212
# File 'lib/ffi/clang/comment.rb', line 210

def direction
	Lib.param_command_comment_get_direction(@comment)
end

#direction_explicit?Boolean

Returns:

  • (Boolean)


206
207
208
# File 'lib/ffi/clang/comment.rb', line 206

def direction_explicit?
	Lib.param_command_comment_is_direction_explicit(@comment) != 0
end

#indexObject



202
203
204
# File 'lib/ffi/clang/comment.rb', line 202

def index
	Lib.param_command_comment_get_param_index(@comment)
end

#nameObject



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

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

#textObject Also known as: comment



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

def text
	self.map(&:text).join("")
end

#valid_index?Boolean

Returns:

  • (Boolean)


198
199
200
# File 'lib/ffi/clang/comment.rb', line 198

def valid_index?
	Lib.param_command_comment_is_param_index_valid(@comment) != 0
end