Class: CSS::Nodes::Declaration

Inherits:
Data
  • Object
show all
Defined in:
lib/css/nodes.rb

Overview

‘name: value [!important]`.

Instance Attribute Summary collapse

Instance Attribute Details

#importantObject (readonly)

Returns the value of attribute important

Returns:

  • (Object)

    the current value of important



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

def important
  @important
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



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

def value
  @value
end