Pertanyaan yang diberi tag duck-typing

135
Jenis kelas dan pernyataan kasus Ruby

Apa perbedaan antara case item.class when MyClass # do something here when Array # do something different here when String # do a third thing end dan case item.class when MyClass.class # do something here when Array.class # do something different here when String.class # do a third...