|
includes is based on identity, not equality. If you wrote this, you'd get false also. ServerOptions.devices.detect { |d| d === "JackRouter" }.notNil Try the includesEqual method instead. hjh On May 2, 2009, at 10:49 AM, Anton Hörnquist wrote:
: H. James Harkins .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |