2010-10-05から1日間の記事一覧
2秒くらいはまったのでメモ。 これはok。 print 1 == 1 ? 'ok' : 'ng'; #=> ok これもok。 print 'foo' eq 'foo' ? 'ok' : 'ng'; #=> ok これはng、というか1。 print ('foo' eq 'foo') ? 'ok' : 'ng'; #=> 1 1は「eq」の返却値の「true」。 なのでこれと同…
2秒くらいはまったのでメモ。 これはok。 print 1 == 1 ? 'ok' : 'ng'; #=> ok これもok。 print 'foo' eq 'foo' ? 'ok' : 'ng'; #=> ok これはng、というか1。 print ('foo' eq 'foo') ? 'ok' : 'ng'; #=> 1 1は「eq」の返却値の「true」。 なのでこれと同…