1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

style(rubocop): Naming/MemoizedInstanceVariableName

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 23:16:41 +00:00
الأصل 00a02f2655
التزام 9563f30c96
6 ملفات معدلة مع 26 إضافات و26 حذوفات

عرض الملف

@@ -8,12 +8,12 @@ module Postal
end
def [](value)
to_hash[value.to_s]
hash[value.to_s]
end
delegate :empty?, to: :to_hash
delegate :empty?, to: :hash
def to_hash
def hash
@hash ||= @string.scan(/([a-z]+):\s*(?:(\d{2,4}-\d{2}-\d{2}\s\d{2}:\d{2})|"(.*?)"|(.*?))(\s|\z)/).each_with_object({}) do |(key, date, string_with_spaces, value), hash|
if date
actual_value = date

عرض الملف

@@ -202,7 +202,7 @@ module Postal
end
def job_channel
@channel ||= Postal::RabbitMQ.create_channel
@job_channel ||= Postal::RabbitMQ.create_channel
end
def job_queue(name)