Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
とは何ですか !! この Ruby 関数の意味は?
def is_i? !!(self =~ /^[-+]?[0-9]+$/) end
応答がブール値であることを確認します。So nilor falsewill become false、その他の値はtrue
nil
false
true