#--
-# $Id: redact.rb 49 2005-06-09 17:21:05Z tilman $
-#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
# Permission is hereby granted, free of charge, to any person obtaining
end
module Redact
- VERSION = "0.1.1"
+ VERSION = "0.1.5"
class RedactError < StandardError; end
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