Class: Uttk::Dumpers::Mail

Inherits:
Dumper show all
Includes:
Concrete
Defined in:
lib/uttk/dumpers/Mail.rb

Instance Attribute Summary

Attributes inherited from Dumper

#options

Instance Method Summary collapse

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 ( options )
  super(TempPath.new)
  options = {
    :dumper  => Html.new,
    :subject => "Uttk output #{Time.now}",
  }.merge options
  @dumper = options[:dumper]
  @mailer = Sendmail.new(options.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