Skip to content

Net::SMTP.start arguments are keyword arguments#7

Merged
knu merged 1 commit into
ruby:masterfrom
tmtm:start_keyword_arguments
Jul 20, 2020
Merged

Net::SMTP.start arguments are keyword arguments#7
knu merged 1 commit into
ruby:masterfrom
tmtm:start_keyword_arguments

Conversation

@tmtm

@tmtm tmtm commented Jul 15, 2020

Copy link
Copy Markdown
Collaborator

The helo argument is not important, but the helo argument must be specified to specify the user and secret arguments.
If helo, user, secret, and authtype arguments are keyword arguments, it is not necessary to specify the helo argument.

@znz

znz commented Jul 18, 2020

Copy link
Copy Markdown
Member

Please update the test too.

@tmtm tmtm force-pushed the start_keyword_arguments branch from d88e95b to c1bc96b Compare July 19, 2020 12:26
The helo argument is not important, but the helo argument must be
specified to specify the user and secret arguments.
If helo, user, secret, and authtype arguments are keyword arguments,
it is not necessary to specify the helo argument.
@tmtm tmtm force-pushed the start_keyword_arguments branch from c1bc96b to 269774d Compare July 19, 2020 12:32
@tmtm

tmtm commented Jul 19, 2020

Copy link
Copy Markdown
Collaborator Author

I added test.

@knu

knu commented Jul 20, 2020

Copy link
Copy Markdown
Member

I agree that keyword arguments are far more intuitive than a handful of positional arguments.

@knu knu merged commit e9be1a4 into ruby:master Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants