Open MSP-Greg opened 1 year ago
The following code in main will change the console output of Arrays when loaded:
https://github.com/SketchUp/testup-2/blob/e32a68c5c02e2cbc3a924f40d4987faa05dbcc89/src/testup/console.rb#L53-L66
Without it loaded, puts [1,2,3] shows the following in the console:
puts [1,2,3]
1 2 3
With it loaded, Array#to_s is used, so it outputs:
Array#to_s
[1,2,3]
This change was made to output similar to Ruby itself.
It's something I've been meaning to get into SketchUp itself when we do a refresh of the Ruby Console.
The following code in main will change the console output of Arrays when loaded:
https://github.com/SketchUp/testup-2/blob/e32a68c5c02e2cbc3a924f40d4987faa05dbcc89/src/testup/console.rb#L53-L66
Without it loaded,
puts [1,2,3]
shows the following in the console:With it loaded,
Array#to_s
is used, so it outputs: