Sha256: 6b5975c8ddf993e38d77d841ddb3e82be6225175cd8beecaa59534d68148a45b

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

module CssParserMaster
  class Declarations
    include Enumerable

    attr_reader :declarations

    def << declaration
      declarations << declaration      
    end

    def each
      @declarations.each { |dec| yield dec }
    end

    def empty?
      declarations.empty?
    end      

    def initialize(declarations)
      @declarations = declarations
    end  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
css_parser_master-1.2.4 lib/css_parser_master/declarations.rb