Sha256: 0e3906ad35154ff36db700ee3a5b777979a770557d37869a6430038b7d6875d8

Contents?: true

Size: 242 Bytes

Versions: 2

Compression:

Stored size: 242 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

2 entries across 2 versions & 1 rubygems

Version Path
pair_see-0.1.2 lib/pair_see/combo.rb
pair_see-0.1.1 lib/pair_see/combo.rb