Sha256: 424ddb12a65845a5c69e76c4cf0ef3c0c681a5b1687efc358165da6c08ba53fe

Contents?: true

Size: 165 Bytes

Versions: 1

Compression:

Stored size: 165 Bytes

Contents

module WeightedSelection
  class Item
    def initialize(weight, value)
      @weight = weight
      @value = value
    end
    attr_reader :weight, :value
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
weighted-selection-1.0.0 lib/weighted_selection/item.rb