# File lib/pathname.rb, line 187 def initialize(path) path = path.to_str if path.respond_to? :to_str @path = path.dup if /\0/ =~ @path raise ArgumentError, "pathname contains \\0: #{@path.inspect}" end self.taint if @path.tainted? end