Sha256: af337903914cc85fb7bed9defc371bd85b4cf66700fb3ddaefe4eee02beabccc

Contents?: true

Size: 265 Bytes

Versions: 4

Compression:

Stored size: 265 Bytes

Contents

module BeautifulCss
  class Rule

    attr_accessor :selector, :prop, :value

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

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

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
beautiful-css-0.0.9 lib/beautiful-css/rule.rb
beautiful-css-0.0.8 lib/beautiful-css/rule.rb
beautiful-css-0.0.6 lib/beautiful-css/rule.rb
beautiful-css-0.0.5 lib/beautiful-css/rule.rb