No, It is Immpossible. Objects cannot change their classes in Ruby.
In Smalltalk, for example, you can use become::
becomeSubStrings: aString
self become: (self subStrings: aString).
If you call it like this:
s := 'qwerty'.
s becomeSubStrings: 'e'.
s :
Transcript show: s printString.
:
#('qw' 'rty')
, become: , . self self subStrings:, . : .