Sha256: bd820c1dd790fa135eaf8647babea4ecd4adff006aec58f19cae6f99b370b82c

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 Bytes

Contents

module JBundle
  
  class Bundle
    
    include Enumerable
    
    attr_reader :name, :licenses

    def initialize(name)
      @name = name.to_s
      @files = []
      @licenses = []
    end
    
    def file(f)
      @files << f
    end
    
    def license(license_file)
      @licenses << license_file
    end
    
    def each(&block)
      @files.each &block
    end
    
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jbundle-0.0.6 lib/jbundle/bundle.rb
jbundle-0.0.5 lib/jbundle/bundle.rb
jbundle-0.0.4 lib/jbundle/bundle.rb
jbundle-0.0.3 lib/jbundle/bundle.rb
jbundle-0.0.2 lib/jbundle/bundle.rb
jbundle-0.0.1 lib/jbundle/bundle.rb