Closed DannyBen closed 4 years ago
It would be nicer if all options - including locale and timezone - are treated the same.
The fact that there is an empty hash in the below call, is not very "ruby":
Cronex::ExpressionDescriptor.new('* * * * *", {}, "fr").description
The problem is even more evident when you want to only set timezone
Cronex::ExpressionDescriptor.new('* * * * *", {}, nil, "New York").description
Would be clearer and nicer (and dare I say idiomatic....) to do:
Cronex::ExpressionDescriptor.new('* * * * *", locale: 'fr', timezone: "New York").description
👍
It would be nicer if all options - including locale and timezone - are treated the same.
The fact that there is an empty hash in the below call, is not very "ruby":
The problem is even more evident when you want to only set timezone
Would be clearer and nicer (and dare I say idiomatic....) to do: