Method: Async::List#last
- Defined in:
- lib/async/list.rb
permalink #last ⇒ Object
[View source]
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/async/list.rb', line 213 def last # validate! current = @head while !current.equal?(self) if current.is_a?(Iterator) current = current.head else return current end end return nil end |