Class: Collection::Array
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
#content ⇒ Object
5
6
7
|
# File 'lib/collection/array.rb', line 5
def content
@content ||= ::Array.new
end
|
#last ⇒ Object
9
10
11
|
# File 'lib/collection/array.rb', line 9
def last
content.last
end
|
#length ⇒ Object
Also known as:
size
13
14
15
|
# File 'lib/collection/array.rb', line 13
def length
count
end
|