ruby - Why 2 strings with the same value can be not equal -


i'm trying fix bug in third party application (vagrant). have 2 variables , reason not equal. i've checked , both strings , both have same value. can reason?

debug string:

"'" + vagrant::version + "', '" + windows_version + "', " + vagrant::version.class.name + ", " + windows_version.class.name + ", " + (windows_version == vagrant::version ? "true" : "false") 

output:

'1.9.6', '1.9.6', string, string, false 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -