Parent

Methods

Files

CSSPool::LibCroco::CRSelector

Public Instance Methods

to_selector() click to toggle source

(Not documented)

# File lib/csspool/lib_croco/cr_selector.rb, line 14
      def to_selector
        simple_selectors = []
        pointer = self[:simple_sel]

        until pointer.null?
          LibCroco.cr_simple_sel_compute_specificity(pointer)
          simple_selectors << CRSimpleSel.new(pointer)
          pointer = simple_selectors.last[:next]
        end

        simple_selectors = simple_selectors.map { |sel| sel.to_simple_selector }

        Selector.new simple_selectors, {
          :line         => self[:line],
          :column       => self[:column],
          :byte_offset  => self[:byte_offset]
        }
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.