Class: Pendaxes::Notificator::File
- Inherits:
-
Pendaxes::Notificator
- Object
- Pendaxes::Notificator
- Pendaxes::Notificator::File
- Defined in:
- lib/pendaxes/notificators/file.rb
Instance Method Summary collapse
Methods inherited from Pendaxes::Notificator
#initialize, #report_for, #reporter
Methods included from Defaults
Methods included from Finder
Methods included from PendingManager
#add, #all_pendings, #pendings, #reset
Constructor Details
This class inherits a constructor from Pendaxes::Notificator
Instance Method Details
#notify ⇒ Object
8 9 10 11 12 13 |
# File 'lib/pendaxes/notificators/file.rb', line 8 def notify @config.out.puts " * writing report to #{@config.to}" if @config.out open(@config.to, 'w') do |io| io.puts report_for(pendings) end end |