Class: CSSPool::LibCroco::GList

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/csspool/lib_croco/glist.rb

Instance Method Summary collapse

Instance Method Details

#to_aObject



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