如何创建整数0..9和数学运算符+ - */in到二进制字符串.例如:
0 = 0000, 1 = 0001, ... 9 = 1001
有没有办法在不使用库的情况下使用Ruby 1.8.6执行此操作?
ruby binary encode
binary ×1
encode ×1
ruby ×1