fix ==/= typo
use ruby 1.8 compatible syntax