Class: Gem::List
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Enumerable
|
|
Inherits: | Object |
Defined in: | lib/rubygems/util/list.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
- #each
- #prepend(value)
- #to_a
- #pretty_print(q) Internal use only
Constructor Details
.new(value = nil, tail = nil) ⇒ List
Class Method Details
.prepend(list, value)
[ GitHub ]Instance Attribute Details
#tail (rw)
[ GitHub ]# File 'lib/rubygems/util/list.rb', line 5
attr_accessor :value, :tail
#value (rw)
[ GitHub ]# File 'lib/rubygems/util/list.rb', line 5
attr_accessor :value, :tail
Instance Method Details
#each
[ GitHub ]#prepend(value)
[ GitHub ]#pretty_print(q)
This method is for internal use only.
[ GitHub ]
# File 'lib/rubygems/util/list.rb', line 28
def pretty_print(q) # :nodoc: q.pp to_a end
#to_a
[ GitHub ]# File 'lib/rubygems/util/list.rb', line 20
def to_a super.reverse end