Class: CSSPool::LibCroco::GList
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- CSSPool::LibCroco::GList
- Defined in:
- lib/csspool/lib_croco/glist.rb
Instance Method Summary collapse
Instance Method Details
#to_a ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/csspool/lib_croco/glist.rb', line 10 def to_a list = [self] pointer = list.last[:next] until pointer.null? list << GList.new(pointer) pointer = list.last[:next] end list.map { |x| x[:data] } end |