Sha256: fd4777b94c649448cc91b2a826b16cad024e0d39ac5d3e5b974d36a4b927e1d1
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true module PubGrub class Package attr_reader :name def initialize(name) @name = name end def inspect "#<#{self.class} #{name.inspect}>" end def <=>(other) name <=> other.name end ROOT = Package.new(:root) ROOT_VERSION = 0 def self.root ROOT end def self.root_version ROOT_VERSION end def to_s name end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pub_grub-0.4.3 | lib/pub_grub/package.rb |
pub_grub-0.4.2 | lib/pub_grub/package.rb |
pub_grub-0.4.1 | lib/pub_grub/package.rb |
pub_grub-0.4.0 | lib/pub_grub/package.rb |