Removed RCS-style IDs.
[redact.git] / lib / redact / redact.rb
index a4c37fd332f1fd3dc8f01e70c2c97bf3a9f3230c..f1a93faa0cd3b8667c11a48c549cda9062296cec 100644 (file)
@@ -1,6 +1,4 @@
 #--
-# $Id: redact.rb 64 2005-08-25 21:22:04Z tilman $
-#
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
 # Permission is hereby granted, free of charge, to any person obtaining
@@ -57,7 +55,7 @@ class String
 end
 
 module Redact
-       VERSION = "0.1.4"
+       VERSION = "0.1.5"
 
        class RedactError < StandardError; end
 
@@ -259,7 +257,8 @@ module Redact
                end
 
                def script=(v)
-                       @script = v.to_str.dup
+                       v = v.to_str
+                       @script = (File.exist?(v) ? File.read(v) : v).dup
                end
 
                def part(name, type = :invalid) # :yields: part