Module: CSSPool::LibCroco

Extended by:
FFI::Library
Defined in:
lib/csspool/lib_croco.rb,
lib/csspool/lib_croco/glist.rb,
lib/csspool/lib_croco/cr_num.rb,
lib/csspool/lib_croco/cr_rgb.rb,
lib/csspool/lib_croco/cr_term.rb,
lib/csspool/lib_croco/cr_parser.rb,
lib/csspool/lib_croco/cr_pseudo.rb,
lib/csspool/lib_croco/cr_attr_sel.rb,
lib/csspool/lib_croco/cr_selector.rb,
lib/csspool/lib_croco/cr_simple_sel.rb,
lib/csspool/lib_croco/cr_doc_handler.rb,
lib/csspool/lib_croco/cr_additional_sel.rb,
lib/csspool/lib_croco/cr_parsing_location.rb

Defined Under Namespace

Classes: CRAdditionalSel, CRAttrSel, CRDocHandler, CRNum, CRParser, CRParsingLocation, CRPseudo, CRRgb, CRSelector, CRSimpleSel, CRTerm, GList

Class Method Summary collapse

Class Method Details

.location_to_h(thing) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/csspool/lib_croco.rb', line 57

def self.location_to_h thing
  {
    :line         => thing[:line],
    :column       => thing[:column],
    :byte_offset  => thing[:byte_offset]
  }
end