Module: Messages

Included in:
ConnectState, ConnectedState, InitState, QuitState, ReadMailState
Defined in:
lib/smtp_states.rb

Instance Method Summary collapse

Instance Method Details

#go_ahead(io) ⇒ Object



17
18
19
# File 'lib/smtp_states.rb', line 17

def go_ahead(io)
  io.puts '354 go ahead'
end

#goodbye(io) ⇒ Object



21
22
23
# File 'lib/smtp_states.rb', line 21

def goodbye(io)
  io.puts '221 ruby goodbye'
end

#greeting(io) ⇒ Object



5
6
7
# File 'lib/smtp_states.rb', line 5

def greeting(io)
  io.puts '220 ruby ESMTP'
end

#helo_response(io) ⇒ Object



9
10
11
# File 'lib/smtp_states.rb', line 9

def helo_response(io)
  io.puts '250 ruby'
end

#ok(io) ⇒ Object



13
14
15
# File 'lib/smtp_states.rb', line 13

def ok(io)
  io.puts '250 ok'
end