Class: FFI::Clang::InlineCommandComment
- Inherits:
-
Comment
- Object
- Comment
- FFI::Clang::InlineCommandComment
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?
Instance Method Details
#args ⇒ Object
163
164
165
166
167
|
# File 'lib/ffi/clang/comment.rb', line 163
def args
num_args.times.map { |i|
Lib. Lib.inline_command_comment_get_arg_text(@comment, i)
}
end
|
#name ⇒ Object
151
152
153
|
# File 'lib/ffi/clang/comment.rb', line 151
def name
Lib. Lib.inline_command_comment_get_command_name(@comment)
end
|
#num_args ⇒ Object
159
160
161
|
# File 'lib/ffi/clang/comment.rb', line 159
def num_args
Lib.inline_command_comment_get_num_args(@comment)
end
|
#render_kind ⇒ Object
155
156
157
|
# File 'lib/ffi/clang/comment.rb', line 155
def render_kind
Lib.inline_command_comment_get_render_kind(@comment)
end
|
#text ⇒ Object
169
170
171
|
# File 'lib/ffi/clang/comment.rb', line 169
def text
args.join
end
|