X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=lib%2Fredact%2Fredact.rb;h=2a91f207725e4cfefb2af3fb1f588d5aeefd33e2;hb=da6a7a4135192be1eb7b31a7f4a6aba9a4b6bf83;hp=581c4c4297739fd0667a039ce675bfe16ed37098;hpb=eabefe8c75ede2bdf39853e56c5d59984893decc;p=redact.git diff --git a/lib/redact/redact.rb b/lib/redact/redact.rb index 581c4c4..2a91f20 100644 --- a/lib/redact/redact.rb +++ b/lib/redact/redact.rb @@ -1,5 +1,5 @@ #-- -# $Id: redact.rb 53 2005-06-11 13:21:38Z tilman $ +# $Id: redact.rb 71 2005-09-21 16:00:31Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -57,7 +57,7 @@ class String end module Redact - VERSION = "0.1.2" + VERSION = "0.1.4" class RedactError < StandardError; end @@ -259,7 +259,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