remove all that label stuff

left over after rewrite from blocks to linked list
This commit is contained in:
Torsten Ruger
2018-03-26 14:54:41 +03:00
parent 1e21177b35
commit b24b65520d
6 changed files with 22 additions and 109 deletions

View File

@ -50,11 +50,16 @@ module Common
end
alias :<< :append
def length( labels = [] )
ret = 1
ret += self.next.length( labels ) if self.next
def length
ret = 0
self.each { ret += 1}
ret
end
def each(&block)
block.call(self)
@next.each(&block) if @next
end
end
end