Sha256: ed34426723630927359a7d36eb4e6b281dec559c9bf3290c11f8df6745c08309
Contents?: true
Size: 577 Bytes
Versions: 11
Compression:
Stored size: 577 Bytes
Contents
require File.join(File.dirname(__FILE__), "namespace") class RPM::Requires private def initialize(name) @name = name @version = "0" @operator = ">=" end # def initialize def condition(operator, version) @operator = operator @version = version end # def condition def <=(version); condition(:<=, version) end def >=(version); condition(:>=, version) end def <(version); condition(:<, version) end def >(version); condition(:>, version) end def ==(version); condition(:==, version) end public(:initialize, :<=, :>=, :<, :>, :==) end
Version data entries
11 entries across 11 versions & 1 rubygems