Method: ActiveWrapper::Log#clear
- Defined in:
- lib/active_wrapper/log.rb
#clear ⇒ Object
28 29 30 31 32 33 |
# File 'lib/active_wrapper/log.rb', line 28 def clear Dir["#{base}/log/*.log"].each do |file| f = File.open(file, "w") f.close end end |