evt-collection 1.0.0.1 → 1.0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/collection/set.rb +9 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf7cf1ffea012f90866505cffcab4b01b209fba5ae36cc3de37adbc1654b59bd
4
- data.tar.gz: cda4e9c233671dd718ab8c2f8e1c54e2517ade74f1dc7232dddeacd4d8e46a1a
3
+ metadata.gz: 94c1a5732a69bbfbbfd19f8fb2500bae6063c516ea6198502c7ac93d71b30154
4
+ data.tar.gz: 16aebc9429c4616f9a0d75784e6c6fcae71f27eab784b9de911c94719e268b58
5
5
  SHA512:
6
- metadata.gz: dd6424fd2c49f7f332b393927e4ea8a856ed0b509abbd1098e3309b45fad99a0696ca4269a8748d6313c0fdfdb9733e0f589f7b7529850186498a0272d48b5ec
7
- data.tar.gz: a74a0d5c6b443595cd23050218908cf3048c4e858793d48c323a03160e8ba6c8a91e7d4ac28fce15f17e1e6c9c9b6af598f443e294345675428246d92491c1d5
6
+ metadata.gz: b5028258f11acfa0bd8e10b6ebabcc7af629d3320116adf6c0fda793fb6e7f2c4210263f26ea22a17074ee0cfa1cb6112b731431bd4302acff3cacb66b7853fd
7
+ data.tar.gz: 62927d8b8a68f96f12420744d6ee09350a43a612b1793851bdc09cc24c4acf60a0a7e4d4621eda02a7f99b81085a69d12e1178115e7a3d7e3b83585ebd1b4cf1
@@ -52,7 +52,7 @@ module Collection
52
52
 
53
53
  def add(val)
54
54
  raise ArgumentError, "#{val.inspect} must be a #{type_parameter.name}" unless val.is_a? type_parameter
55
- set.add(val)
55
+ content.add(val)
56
56
  end
57
57
  alias :<< :add
58
58
 
@@ -65,33 +65,33 @@ module Collection
65
65
  end
66
66
 
67
67
  def entries(&predicate)
68
- set.select(&predicate)
68
+ content.select(&predicate)
69
69
  end
70
70
 
71
71
  def entry(&predicate)
72
- set.find(&predicate)
72
+ content.find(&predicate)
73
73
  end
74
74
 
75
75
  def each(&action)
76
- set.each(&action)
76
+ content.each(&action)
77
77
  end
78
78
 
79
79
  def entries?
80
- !set.empty?
80
+ !content.empty?
81
81
  end
82
82
 
83
83
  def empty?
84
- set.empty?
84
+ content.empty?
85
85
  end
86
86
 
87
87
  def length
88
- set.length
88
+ content.length
89
89
  end
90
90
  alias :size :length
91
91
  alias :count :length
92
92
 
93
- private def set
94
- @set ||= ::Set.new
93
+ def content
94
+ @content ||= ::Set.new
95
95
  end
96
96
  end
97
97
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-collection
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.1
4
+ version: 1.0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project