Sha256: 7b7a0b00e545f54180a749cff9e0005127b8c619bdc87992128f5b3686bcc785
Contents?: true
Size: 312 Bytes
Versions: 5
Compression:
Stored size: 312 Bytes
Contents
module Kuby class Dependency attr_reader :name, :constraints def initialize(name, *constraints) @name = name @constraints = Kuby::Utils::SemVer.parse_constraints(*constraints) end def satisfied_by?(dependable) constraints.satisfied_by?(dependable.version) end end end
Version data entries
5 entries across 5 versions & 1 rubygems