Class: Async::List::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/async/list.rb

Overview

A linked list Node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#headObject

Returns the value of attribute head.



240
241
242
# File 'lib/async/list.rb', line 240

def head
  @head
end

#tailObject

Returns the value of attribute tail.



241
242
243
# File 'lib/async/list.rb', line 241

def tail
  @tail
end

Instance Method Details

#to_sObject Also known as: inspect



244
245
246
# File 'lib/async/list.rb', line 244

def to_s
	sprintf("#<%s:0x%x>", self.class.name, object_id)
end