Method: Liste#each
- Defined in:
- lib/prct06/list.rb
#each ⇒ obj.value
Each Method, necessarie for the enumeration
27 28 29 30 31 32 33 |
# File 'lib/prct06/list.rb', line 27 def each() act = @head while act != nil yield act.value act = act.next end end |