Sha256: 8af8e52aab266be969702d919f9ddd87681cc3bb38b2209b9585e6ec3fdf54e3

Contents?: true

Size: 244 Bytes

Versions: 2

Compression:

Stored size: 244 Bytes

Contents

module Space
  class Dependency
    attr_reader :name, :ref

    def initialize(name, ref)
      @name = name
      @ref = ref
    end

    def fresh?
      repo.ref == ref
    end

    def repo
      Repos.find_by_name(name)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space-0.0.3 lib/space/models/dependency.rb
space-0.0.2 lib/space/models/dependency.rb