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
113
114
115
116
117
118
119
120
|
# File 'lib/ffi/clang/comment.rb', line 113
def attrs
num_attrs.times.map { |i|
{
name: Lib.(Lib.(@comment, i)),
value: Lib.(Lib.(@comment, i)),
}
}
end
|
#num_attrs ⇒ Object
109
110
111
|
# File 'lib/ffi/clang/comment.rb', line 109
def num_attrs
Lib.(@comment)
end
|
#self_closing? ⇒ Boolean
105
106
107
|
# File 'lib/ffi/clang/comment.rb', line 105
def self_closing?
Lib.(@comment) != 0
end
|