そこでunless修飾子ですよ
読みやすいコードの書き方 - おもしろwebサービス開発日記
def hoge unless A return end B end
そこでunless修飾子ですよ。
def hoge return unless A B end
ほら、すっきり。
読みやすいコードの書き方 - おもしろwebサービス開発日記
def hoge unless A return end B end
そこでunless修飾子ですよ。
def hoge return unless A B end
ほら、すっきり。