Sha256: aad75dc6a9f59eed1cc1f2d2480d8f1f140687c07411939a9d3b03722872c970

Contents?: true

Size: 305 Bytes

Versions: 7

Compression:

Stored size: 305 Bytes

Contents

class StyleStats::Css
  class Declaration
    attr_accessor :property, :value, :important

    def initialize(property, value)
      self.important = !!value.match(/!important/)
      self.property = property
      self.value = value.gsub("!important", '').strip.force_encoding("utf-8")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
style_stats-0.4.2 lib/style_stats/css/declaration.rb
style_stats-0.4.1 lib/style_stats/css/declaration.rb
style_stats-0.4.0 lib/style_stats/css/declaration.rb
style_stats-0.3.0 lib/style_stats/css/declaration.rb
style_stats-0.2.0 lib/style_stats/css/declaration.rb
style_stats-0.1.0 lib/style_stats/css/declaration.rb
style_stats-0.0.1 lib/style_stats/css/declaration.rb