2000-05-03から1日間の記事一覧
備忘録目次 - ロバの耳 h = { 'Apple' => 'red', 'Banana' => 'yellow', 'Lemon' => 'yellow', 'Carrot' => 'orange' } p h.key?('Lemon') #=> true p h.key?('Peach') #=> false p (h['Apple'])? 'TRUE': 'FALSE' #=> "TRUE" p (h['Eggplant'])? 'TRUE': 'F…