Sha256: 2d0b23155db282aec6876feecde9bc3a36f7e07a4eadae00405d56721acac0ca

Contents?: true

Size: 244 Bytes

Versions: 3

Compression:

Stored size: 244 Bytes

Contents

module PairSee
  class Combo
    attr_reader :count, :devs

    def initialize(count, *devs)
      @count, @devs = count, devs
    end

    def to_s
      "#{devs.join ', '}: #{count}"
    end

    def empty?
      count == 0
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pair_see-0.1.5 lib/pair_see/combo.rb
pair_see-0.1.4 lib/pair_see/combo.rb
pair_see-0.1.3 lib/pair_see/combo.rb