small arm fixes etc

This commit is contained in:
Torsten Ruger
2018-06-06 00:53:41 +03:00
parent d7b3368b28
commit 4ab6d62acf
8 changed files with 79 additions and 11 deletions

View File

@ -46,6 +46,11 @@ module Parfait
end
end
def ensure_next
extend_one unless @next
@next
end
def each_block( &block )
block.call( self )
@next.each_block( &block ) if @next