Class
Attributes
Read & Write
No documentation available
Read & Write
No documentation available
Class Methods
lib/rubygems/util/list.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/util/list.rb, line 7
def initialize(value = nil, tail = nil)
@value = value
@tail = tail
end
No documentation available
lib/rubygems/util/list.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/util/list.rb, line 32
def self.prepend(list, value)
return List.new(value) unless list
List.new value, list
end
No documentation available
Instance Methods
lib/rubygems/util/list.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/util/list.rb, line 12
def each
n = self
while n
yield n.value
n = n.tail
end
end
No documentation available
lib/rubygems/util/list.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/util/list.rb, line 24
def prepend(value)
List.new value, self
end
No documentation available
#
lib/rubygems/util/list.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/util/list.rb, line 20
def to_a
super.reverse
end
No documentation available