Class: Eyeliner::StyleRule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#declarationsObject

Returns the value of attribute declarations

Returns:

  • (Object)

    the current value of declarations



13
14
15
# File 'lib/eyeliner.rb', line 13

def declarations
  @declarations
end

#specificityObject

Returns the value of attribute specificity

Returns:

  • (Object)

    the current value of specificity



13
14
15
# File 'lib/eyeliner.rb', line 13

def specificity
  @specificity
end

Instance Method Details

#<=>(other) ⇒ Object



15
16
17
# File 'lib/eyeliner.rb', line 15

def <=>(other)
  specificity <=> other.specificity
end

#to_sObject



19
20
21
# File 'lib/eyeliner.rb', line 19

def to_s
  declarations
end