Skip to content

Conversation

@supronva-github
Copy link
Owner

No description provided.

@@ -0,0 +1,2 @@
# Logfile created on 2023-07-13 05:54:24 +0300 by logger.rb/v1.4.2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

папку с логами помещай всегда в гитигнор. этот файл растет очень быстро, ты им просто вес репозитория увеличишь, да и другим разработчикам он не нужен

@formats = formats || []
end

def valid_formats

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это публичный метод?

end

def formatted_time
valid_formats.map { |format| Time.now.strftime(FORMATS[format]) }.join('-')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

у тебя двойной цикл получился. сначала ты выбираешь все правильные параметры.а поотм начинаешь их перебирать чтобы собрать строку.

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