Open
Conversation
| @@ -0,0 +1,19 @@ | |||
| module AtomConverter | |||
|
|
|||
Contributor
There was a problem hiding this comment.
Видимо, код через rubocop не прогонялся..
Contributor
There was a problem hiding this comment.
Или он реально пустую строчку вставляет?
Author
There was a problem hiding this comment.
Не прогонялся через рубокоп, в данной реализации было важно сам функционал) учту при дальнейшей разработке.
| data | ||
| end | ||
|
|
||
| def self.can?(data) |
Contributor
There was a problem hiding this comment.
Не понятно, что can? Надо бы по-яснее метод описывать.
Author
There was a problem hiding this comment.
С названиями у меня всегда проблема))
| def self.can?(input) | ||
| uri = URI.parse(input) | ||
| %w( http https ).include?(uri.scheme) | ||
| rescue URI::BadURIError |
Contributor
There was a problem hiding this comment.
rescue URI::BadURIError, URI::InvalidURIError
попробуй так сделать
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Первая версия рабочей программы.