Class: FFI::Clang::HTMLStartTagComment
Instance Method Summary
collapse
#name, #text
Methods inherited from Comment
build_from, #child, #children, #each, #has_trailing_newline?, #initialize, #kind, #num_children, #text, #whitespace?
Instance Method Details
#attrs ⇒ Object
125
126
127
128
129
130
131
132
|
# File 'lib/ffi/clang/comment.rb', line 125
def attrs
num_attrs.times.map { |i|
{
name: Lib.(Lib.(@comment, i)),
value: Lib.(Lib.(@comment, i)),
}
}
end
|
#num_attrs ⇒ Object
121
122
123
|
# File 'lib/ffi/clang/comment.rb', line 121
def num_attrs
Lib.(@comment)
end
|
#self_closing? ⇒ Boolean
117
118
119
|
# File 'lib/ffi/clang/comment.rb', line 117
def self_closing?
Lib.(@comment) != 0
end
|