class Bundler::PubGrub::Package

常量

ROOT
ROOT_VERSION

属性

name[R]

公共类方法

new(name) 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 8
def initialize(name)
  @name = name
end
root() 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 23
def self.root
  ROOT
end
root?(package) 点击以切换源代码
# 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() 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 27
def self.root_version
  ROOT_VERSION
end

公共实例方法

<=>(other) 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 16
def <=>(other)
  name <=> other.name
end
inspect() 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 12
def inspect
  "#<#{self.class} #{name.inspect}>"
end
to_s() 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/package.rb, line 39
def to_s
  name.to_s
end