--
-$Id: ChangeLog 70 2005-09-21 15:56:55Z tilman $
+$Id: ChangeLog 71 2005-09-21 16:00:31Z tilman $
++
2005-09-21 Tilman Sauerbeck (tilman at code-monkey de)
* lib/redact/part.rb: Added Description#inherit
+ * lib/redact/{redact,program}.rb: Collection#script= resp
+ ExecScriptProgram#script= now accept a filename, too
2005-09-19 Tilman Sauerbeck (tilman at code-monkey de)
* lib/redact/part.rb: Fixed ImageDescription#set_border, which
#--
-# $Id: program.rb 33 2005-04-24 15:54:39Z tilman $
+# $Id: program.rb 71 2005-09-21 16:00:31Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
end
def script=(v)
- @script = v.to_str.dup
+ v = v.to_str
+ @script = (File.exist?(v) ? File.read(v) : v).dup
end
end
#--
-# $Id: redact.rb 64 2005-08-25 21:22:04Z tilman $
+# $Id: redact.rb 71 2005-09-21 16:00:31Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
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