Class: CSSPool::LibCroco::CRParsingLocation

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

Instance Method Summary collapse

Instance Method Details

#to_hObject



10
11
12
13
14
# File 'lib/csspool/lib_croco/cr_parsing_location.rb', line 10

def to_h
  Hash[*[:line, :column, :byte_offset].map { |k|
    [k, self[k]]
  }.flatten]
end