Class: CSS::Cascade::Match

Inherits:
Struct
  • Object
show all
Defined in:
lib/css/cascade.rb

Overview

Allocated once per matching declaration on every resolve; Struct constructs noticeably faster than Data, and Match never escapes ‘resolve`, so it doesn’t need Data’s immutability guarantees.

Instance Attribute Summary collapse

Instance Attribute Details

#declarationObject

Returns the value of attribute declaration

Returns:

  • (Object)

    the current value of declaration



24
25
26
# File 'lib/css/cascade.rb', line 24

def declaration
  @declaration
end

#inlineObject

Returns the value of attribute inline

Returns:

  • (Object)

    the current value of inline



24
25
26
# File 'lib/css/cascade.rb', line 24

def inline
  @inline
end

#orderObject

Returns the value of attribute order

Returns:

  • (Object)

    the current value of order



24
25
26
# File 'lib/css/cascade.rb', line 24

def order
  @order
end

#specificityObject

Returns the value of attribute specificity

Returns:

  • (Object)

    the current value of specificity



24
25
26
# File 'lib/css/cascade.rb', line 24

def specificity
  @specificity
end