diff options
Diffstat (limited to 'lib/dtas.rb')
-rw-r--r-- | lib/dtas.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dtas.rb b/lib/dtas.rb index f11d549..0b704ca 100644 --- a/lib/dtas.rb +++ b/lib/dtas.rb @@ -13,6 +13,11 @@ module DTAS # :nodoc: Time.now.to_f end end + + @null = nil + def self.null + @null ||= File.open('/dev/null', 'r+') + end end require_relative 'dtas/compat_onenine' |