Condition constructions are easy to write when you have a simple condition and a possibly complicated body:
if simple_condition_expressed_in_one_liner
complicated_body_that_may_be_long
complicated_body_that_may_be_long
complicated_body_that_may_be_long
end
but sometimes, you have a complicated condition and a simple body like this:
if condition1 and
condition2 and
condition3 and
some_more_complicated_condition_that_cannot_be_written_on_a_single_line and
still_some_more_complicated_condition_that_cannot_be_written_on_a_single_line
simple_body
end
In such case, is there a good way to write it?