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
151
152
153
154
155
|
# File 'lib/ffi/clang/comment.rb', line 151
def args
num_args.times.map { |i|
Lib. Lib.inline_command_comment_get_arg_text(@comment, i)
}
end
|
#name ⇒ Object
139
140
141
|
# File 'lib/ffi/clang/comment.rb', line 139
def name
Lib. Lib.inline_command_comment_get_command_name(@comment)
end
|
#num_args ⇒ Object
147
148
149
|
# File 'lib/ffi/clang/comment.rb', line 147
def num_args
Lib.inline_command_comment_get_num_args(@comment)
end
|
#render_kind ⇒ Object
143
144
145
|
# File 'lib/ffi/clang/comment.rb', line 143
def render_kind
Lib.inline_command_comment_get_render_kind(@comment)
end
|
#text ⇒ Object
157
158
159
|
# File 'lib/ffi/clang/comment.rb', line 157
def text
args.join
end
|