Method: DLLModule::DLL#insert_tail
- Defined in:
- lib/food/dll.rb
#insert_tail(*value_array) ⇒ Object
Insert element in DLL tail
44 45 46 47 48 49 |
# File 'lib/food/dll.rb', line 44 def insert_tail (*value_array) value_array.each { |value| node = Node.new(value) insert_tail_private(node); } end |