Moin!

Some oddities I noticed:

irb(main):034:0> File.open("C:/autoexec.bat").freeze.inspect
TypeError: can't modify frozen File # inspect doesn't modify
         from (irb):34:in `inspect'
# This one also happens for File#path etc.


irb(main):063:0> Dir.new(".").freeze.send(:initialize, "C:/").read
=> "katapult.zip" # Initialize executed despite Dir being frozen


irb(main):097:0> Class.new.freeze.to_s
TypeError: can't modify frozen object # to_s doesn't modify
         from (irb):97:in `to_s'


Regards,
Florian Gross