Class: Collection::Set
Instance Attribute Summary
Attributes included from Collection
#type_parameter
Instance Method Summary
collapse
Methods included from Collection
#==, Array, Set, #add, #clear, #each, #empty?, included, #initialize
Instance Method Details
permalink
#items ⇒ Object
Also known as:
content
[View source]
5
6
7
|
# File 'lib/collection/set.rb', line 5
def items
@items ||= ::Set.new
end
|
[View source]
10
11
12
|
# File 'lib/collection/set.rb', line 10
def last
items.to_a.last
end
|
permalink
#length ⇒ Object
Also known as:
size
[View source]
14
15
16
|
# File 'lib/collection/set.rb', line 14
def length
count
end
|