Class: DataStructList::Head
- Inherits:
-
Object
- Object
- DataStructList::Head
- Defined in:
- lib/data_struct_list.rb
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#prev ⇒ Object
Returns the value of attribute prev.
-
#quant ⇒ Object
Returns the value of attribute quant.
Instance Method Summary collapse
-
#initialize ⇒ Head
constructor
A new instance of Head.
Constructor Details
#initialize ⇒ Head
6 7 8 |
# File 'lib/data_struct_list.rb', line 6 def initialize @quant = 0 end |
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next.
5 6 7 |
# File 'lib/data_struct_list.rb', line 5 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev.
5 6 7 |
# File 'lib/data_struct_list.rb', line 5 def prev @prev end |
#quant ⇒ Object
Returns the value of attribute quant.
5 6 7 |
# File 'lib/data_struct_list.rb', line 5 def quant @quant end |