class Bundler::PubGrub::Package

Constants

ROOT
ROOT_VERSION

Attributes

name[R]

Public Class Methods

new(name) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 8
def initialize(name)
  @name = name
end
root() click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 23
def self.root
  ROOT
end
root?(package) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 31
def self.root?(package)
  if package.respond_to?(:root?)
    package.root?
  else
    package == root
  end
end
root_version() click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 27
def self.root_version
  ROOT_VERSION
end

Public Instance Methods

<=>(other) click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 16
def <=>(other)
  name <=> other.name
end
inspect() click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 12
def inspect
  "#<#{self.class} #{name.inspect}>"
end
to_s() click to toggle source
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 39
def to_s
  name.to_s
end