I just upgraded my ruby 1.9 to the latest stable version (ruby
and now I’m facing a strange issue. The problem is that attempting to
Marshal to dump and then load back an array containing two Regexps gives
error. For example:
str = Marshal.dump [/a/, /b/]
This gives the following error:
load': can't convert Regexp into String (TypeError) from /home/stefano/documents/scripts/prova.rb:4:in’
The above code worked perfectly with the previous version of ruby 1.9.1.
anybody noticed the same issue?
Thanks in advance