Class: Uttk::Dumpers::Mail
- Inherits:
-
Dumper
- Object
- Logger::Backend
- Dumper
- Uttk::Dumpers::Mail
- Includes:
- Concrete
- Defined in:
- lib/uttk/dumpers/Mail.rb
Instance Attribute Summary
Attributes inherited from Dumper
Instance Method Summary collapse
-
#initialize(options) ⇒ Mail
constructor
A new instance of Mail.
- #update(*args) ⇒ Object
Methods inherited from Dumper
#<<, #each_output, #flush, #print, #puts
Constructor Details
#initialize(options) ⇒ Mail
Returns a new instance of Mail.
13 14 15 16 17 18 19 20 21 |
# File 'lib/uttk/dumpers/Mail.rb', line 13 def initialize ( ) super(TempPath.new) = { :dumper => Html.new, :subject => "Uttk output #{Time.now}", }.merge @dumper = [:dumper] @mailer = Sendmail.new(.merge(:body => @io)) end |
Instance Method Details
#update(*args) ⇒ Object
24 25 26 27 |
# File 'lib/uttk/dumpers/Mail.rb', line 24 def update ( *args ) super @dumper.update(*args) end |