Sha256: 8f04519d5383c8318e026f0879b4e86a7509bf3926615f3912d0ebc277d8fd8b

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 Bytes

Contents

require 'reap/hosts/mailinglist'
require 'reap/emailer'

module Reap
module Hosts

  # = Rubytalk
  #
  # This is a Maklinglist host. It simply statically sets
  # the ruby-talk@ruby-lang.org email address and passes
  # on to it's superclass.

  class RubyTalk < Mailinglist

    register('ruby-talk', 'ruby-talk@ruby-lang.org')

    EMAIL_ADDRESS = 'ruby-talk@ruby-lang.org'

    # This sets the mailto address and passes on to the
    # super class.
    #
    # See Mailinglist#announce.

    def announce(options)
      options = options.rekey(&:to_s)
      options['mailto'] = EMAIL_ADDRESS
      super(options)
    end

    def announce_confirm?(options={})
      options = options.rekey(&:to_s)
      options['mailto'] = EMAIL_ADDRESS
      super(options)
    end
  end

end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reap-9.4.0 lib/reap/hosts/rubytalk.rb