From: Gareth Adams Date: 2007-09-21T00:02:07+09:00 Subject: Re: special Array method about Unix pathes Une B辿vue wortanschahung.com.invalid> writes: > what i've done : > > class Array > def includePath?(path) > self.each { | x | > return true if path.startsWith?(x) > } > return false > end > def getContainers! > self.delete_if { | x | ( self - [ x ] ).includePath?( x ) } > end > end In contrast to everyone else's points about your naming, I'm not happy with your implementation. /home/gareth/files/my_file is not a child of /home/gareth/fil Gareth