projects
/
redact.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Collection#script= and ExecScriptProgram#script= now accept a filename, too.
[redact.git]
/
lib
/
redact
/
program.rb
diff --git
a/lib/redact/program.rb
b/lib/redact/program.rb
index 4a17120c1464a558ca521ae065572743db41261a..2342b53a4fa5f90549625472c4d8f88f581756ec 100644
(file)
--- a/
lib/redact/program.rb
+++ b/
lib/redact/program.rb
@@
-1,5
+1,5
@@
#--
#--
-# $Id: program.rb
33 2005-04-24 15:54:39
Z tilman $
+# $Id: program.rb
71 2005-09-21 16:00:31
Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
@@
-212,7
+212,8
@@
module Redact
end
def script=(v)
end
def script=(v)
- @script = v.to_str.dup
+ v = v.to_str
+ @script = (File.exist?(v) ? File.read(v) : v).dup
end
end
end
end