Sha256: 82a89e4597ee38b6aab316a7747167c6c7d5708fa03e30fbfcec8ee63b2fcb74
Contents?: true
Size: 1022 Bytes
Versions: 1
Compression:
Stored size: 1022 Bytes
Contents
CONDITIONAL_PARENTHESES = {} CONDITIONAL_PARENTHESES['no_parentheses'] = %(if foo end) CONDITIONAL_PARENTHESES['with_parentheses'] = %(if (foo) end) CONDITIONAL_PARENTHESES['with_parentheses_no_space'] = %(if(foo) end) CONDITIONAL_PARENTHESES['method_call'] = %(if foo(bar) end) CONDITIONAL_PARENTHESES['indented_method_call'] = %(foo do if foo(bar) end end) CONDITIONAL_PARENTHESES['method_call_on_parens'] = %(unless (foo & bar).sort end ) CONDITIONAL_PARENTHESES['double_parens'] = %(if ((bar)) end) CONDITIONAL_PARENTHESES['unless_no_parentheses'] = %(unless bar end) CONDITIONAL_PARENTHESES['unless_with_parentheses'] = %(unless (bar) end) CONDITIONAL_PARENTHESES['case_no_parentheses'] = %(case bar when 1 then 'a' when 2 then 'b' end) CONDITIONAL_PARENTHESES['case_with_parentheses'] = %(case (bar) when 1 then 'a' when 2 then 'b' end) CONDITIONAL_PARENTHESES['while_no_parentheses'] = %(while bar end) CONDITIONAL_PARENTHESES['while_with_parentheses'] = %(while (bar) end)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.4.1 | spec/support/conditional_parentheses_cases.rb |