j
k
j a
j l
+ cluster_state.each_value do |role_state| ...+ if %(#{role_state["roles"]}) == role Why use % in here?
+ cluster_state.each_value do |role_state|
+ if %(#{role_state["roles"]}) == role
Why use % in here?
之前认为字符串中的双引号需要转义, 之后才知道字符串插值中的双引号不需要转义, 所以就保留下来了. Thanks, RenWen
Thanks, Xueliang ...+ return role_state end end end -- 2.23.0
Thanks, Xueliang
+ return role_state end end end -- 2.23.0
Back to the thread
Back to the list