Class: Bundler::PubGrub::Package
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb |
Constant Summary
-
ROOT =
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb', line 20Package.new(:root)
-
ROOT_VERSION =
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb', line 210
Class Method Summary
Instance Attribute Summary
- #name readonly
Instance Method Summary
Constructor Details
.new(name) ⇒ Package
Class Method Details
.root
[ GitHub ]
.root?(package) ⇒ Boolean
# File 'lib/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
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb', line 27
def self.root_version ROOT_VERSION end
Instance Attribute Details
#name (readonly)
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb', line 6
attr_reader :name
Instance Method Details
#<=>(other)
[ GitHub ]#inspect
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb', line 12
def inspect "#<#{self.class} #{name.inspect}>" end
#to_s
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb', line 39
def to_s name.to_s end