class CssParser::RuleSet::Declarations::Value

def ==(other)

def ==(other)
  return false unless other.is_a?(self.class)
  value == other.value && important == other.important
end

def initialize(value, important: nil)

def initialize(value, important: nil)
  self.value = value
  @important = important unless important.nil?
end

def to_s

def to_s
  important ? "#{value} !important" : value
end

def value=(value)

def value=(value)
  value = value.to_s.sub(/\s*;\s*\Z/, '')
  self.important = !value.slice!(CssParser::IMPORTANT_IN_PROPERTY_RX).nil?
  value.strip!
  raise ArgumentError, 'value is empty' if value.empty?
  @value = value.freeze
end