Object
# File rubygems/util/list.rb, line 6 def initialize(value = nil, tail = nil) @value = value @tail = tail end
# File rubygems/util/list.rb, line 31 def self.prepend(list, value) return List.new(value) unless list List.new value, list end
# File rubygems/util/list.rb, line 11 def each n = self while n yield n.value n = n.tail end end
# File rubygems/util/list.rb, line 23 def prepend(value) List.new value, self end
# File rubygems/util/list.rb, line 19 def to_a super.reverse end
This page was generated for Ruby 2.6.3
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.42.0.