Closed jekhor closed 3 years ago
Да, примерно так. Восклицательный знак - это просто часть имени метода, в данном случае показывающая, что метод меняет объект, а не создаёт копию
пт, 26 лют 2021, 18.44 карыстальнік Anatoli Babenia < notifications@github.com> напісаў:
@abitrolly commented on this pull request. In app/services/notifications_service.rb https://github.com/minsk-hackerspace/hackerspace.by/pull/491#discussion_r583730220 : @@ -23,6 +23,8 @@ def notify_telegram m = "" @debitors.select! { |u| u.paid_until < Date.today - 3.day } А как это расшифровывается? debitors.select( func(u) { return u.paid_until < today - day(3) } ); ? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/minsk-hackerspace/hackerspace.by/pull/491#pullrequestreview-599697639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4VW5VXSRNRGVPDWKHEXTTA66UTANCNFSM4YIERVBQ .
In app/services/notifications_service.rb https://github.com/minsk-hackerspace/hackerspace.by/pull/491#discussion_r583730220 :
@@ -23,6 +23,8 @@ def notify_telegram
m = ""
А как это расшифровывается?
debitors.select( func(u) {
return u.paid_until < today - day(3)
} );
?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/minsk-hackerspace/hackerspace.by/pull/491#pullrequestreview-599697639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4VW5VXSRNRGVPDWKHEXTTA66UTANCNFSM4YIERVBQ .
Да, примерно так. Восклицательный знак - это просто часть имени метода, в данном случае показывающая, что метод меняет объект, а не создаёт копию
пт, 26 лют 2021, 18.44 карыстальнік Anatoli Babenia < notifications@github.com> напісаў: