Sha256: 832a95d836c09b773ff7d6325f702730c558c646f514d559db38bdbc396b022a

Contents?: true

Size: 880 Bytes

Versions: 3

Compression:

Stored size: 880 Bytes

Contents

# Author::    Nicolas Pouillard  <ertai@lrde.epita.fr>.
# Copyright:: Copyright (c) 2005 Uttk Team. All rights reserved.
# License::   LGPL
# Revision::  $Id: /w/fey/uttk/trunk/lib/uttk/dumpers/Mail.rb 53986 2007-01-14T15:03:21.549822Z ertai  $

module Uttk

  module Dumpers

    class Mail < Dumper
      include Concrete

      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


      def update ( *args )
        super
        @dumper.update(*args)
      end
      protected :new_node


      def close
        @mailer.sendmail
        super
      end
      protected :close

    end # class Mail

  end # module Dumpers

end # module Uttk

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uttk-0.4.5.0 lib/uttk/dumpers/Mail.rb
uttk-0.4.6.1 lib/uttk/dumpers/Mail.rb
uttk-0.4.6.2 lib/uttk/dumpers/Mail.rb