src/Pure/General/path.scala
changeset 48457 fd9e28d5a143
parent 48420 a8ed41b6280b
child 48484 70898d016538
--- a/src/Pure/General/path.scala	Mon Jul 23 22:35:10 2012 +0200
+++ b/src/Pure/General/path.scala	Tue Jul 24 00:29:36 2012 +0200
@@ -98,6 +98,11 @@
 
   def split(str: String): List[Path] =
     space_explode(':', str).filterNot(_.isEmpty).map(explode)
+
+
+  /* encode */
+
+  val encode: XML.Encode.T[Path] = (path => XML.Encode.string(path.implode))
 }