Sha256: d091d3a1745abf23afef17fc8fee7d8ace83ad9698510b77b676ccb6a6363785

Contents?: true

Size: 191 Bytes

Versions: 2

Compression:

Stored size: 191 Bytes

Contents

class MyItems

  def initialize
    @items = []
  end

  def add_item(item)
    raise ArgumentError.new(item) unless (4..8).include?(item.length)
    @items.push(item)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
test_values-0.5.0 markdown/readme/named_values/my_items.rb
test_values-0.4.0 markdown/readme/named_values/my_items.rb