Sha256: 52040e7d2e927ba7978278f66f5c3a63311d38b9201b602785be46a2a6eb5558

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

module BeautifulCss
  class Rule

    attr_accessor :selector, :prop, :value

    def initialize(selector, prop, value)
      @selector, @prop, @value = selector.strip, prop.strip, value.strip
    end

    def to_s
      @selector + "\n" + "{ #{prop}:#{value} }"
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beautiful-css-0.0.4 lib/beautiful-css/rule.rb
beautiful-css-0.0.3 lib/beautiful-css/rule.rb