跳轉至正文

Ruby程式語言/參考/物件/TrueClass

來自 Wikibooks,獲取最新知識的開放教材

TrueClass 的唯一例項為 true。

方法

true & other - Logical AND, without short circuit behavior
true | other - Logical OR, without short circuit behavior
true ^ other - Logical exclusive Or (XOR)
華夏公益教科書