class StyleStats::Css::Declaration

Attributes

important[RW]
property[RW]
value[RW]

Public Class Methods

new(property, value) click to toggle source
# File lib/style_stats/css/declaration.rb, line 5
def initialize(property, value)
  self.important = !!value.match(/!important/)
  self.property = property
  self.value = value.gsub("!important", '').strip.force_encoding("utf-8")
end