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

Version Path
arr-pm-0.0.12 lib/arr-pm/requires.rb
arr-pm-0.0.11 lib/arr-pm/requires.rb
arr-pm-0.0.10 lib/arr-pm/requires.rb
arr-pm-0.0.9 lib/arr-pm/requires.rb
arr-pm-0.0.8 lib/arr-pm/requires.rb
arr-pm-0.0.7 lib/arr-pm/requires.rb
arr-pm-0.0.6 lib/arr-pm/requires.rb
arr-pm-0.0.5 lib/arr-pm/requires.rb
arr-pm-0.0.4 lib/arr-pm/requires.rb
arr-pm-0.0.3 lib/arr-pm/requires.rb
arr-pm-0.0.2 lib/arr-pm/requires.rb