| 
 
| 赞 | 120 |  
| VIP | 13 |  
| 好人卡 | 16 |  
| 积分 | 194 |  
| 经验 | 38692 |  
| 最后登录 | 2025-10-17 |  
| 在线时间 | 3082 小时 |  
 Lv4.逐梦者 
	梦石0 星屑19416 在线时间3082 小时注册时间2013-1-11帖子1289 | 
| 本帖最后由 张咚咚 于 2020-5-12 23:54 编辑 
 使用@battler.posture_handler != :normal判断。
 [email protected]_handler == :normal
 相当于
 true/false == symbol对象,肯定是false的
 
 或着也可以
 !(@battler.posture_handler == :normal)
 达到想要的结果
 
 优先级验证
 
 复制代码class A
def !@; puts 1; self; end
def ==(x); puts 2; true; end
end
a = A.new
puts !a == a
 | 
 评分
查看全部评分
 |