How can you translate a binary string into an integer? i.e. two = '10' string_to_int(two) => 2 -- Posted via http://www.ruby-forum.com/.