Sha256: 016f10debc21f5f28d05e072afb4c49e55fb4e69f7b369c24d90eb87d832eea3

Contents?: true

Size: 264 Bytes

Versions: 14

Compression:

Stored size: 264 Bytes

Contents

require 'glimmer/css/rule'

module Glimmer
  module CSS
    class StyleSheet
      attr_reader :rules

      def initialize
        @rules = []
      end

      def to_css
        rules.map(&:to_css).join
      end

      alias to_s to_css      
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
glimmer-dsl-css-0.2.0 lib/glimmer/css/style_sheet.rb
glimmer-dsl-css-0.1.0 lib/glimmer/css/style_sheet.rb
glimmer-0.8.2 lib/glimmer/css/style_sheet.rb
glimmer-0.8.1 lib/glimmer/css/style_sheet.rb
glimmer-0.8.0 lib/glimmer/css/style_sheet.rb
glimmer-0.7.8 lib/glimmer/css/style_sheet.rb
glimmer-0.7.7 lib/glimmer/css/style_sheet.rb
glimmer-0.7.6 lib/glimmer/css/style_sheet.rb
glimmer-0.7.5 lib/glimmer/css/style_sheet.rb
glimmer-0.7.4 lib/glimmer/css/style_sheet.rb
glimmer-0.7.3 lib/glimmer/css/style_sheet.rb
glimmer-0.7.2 lib/glimmer/css/style_sheet.rb
glimmer-0.7.1 lib/glimmer/css/style_sheet.rb
glimmer-0.7.0 lib/glimmer/css/style_sheet.rb