@spring.freediver said:
I was not able to find that it was deprecated.
It was more than deprecated. It was removed in Ruby 2.0 and higher (which is SketchUp 2014 and up.)
The CHANELOGs for the Ruby Core is at it's GitHub project repository.
(But the logs are not that easy to read. They often create "Breaking Changes" synopsis in the NEWS files.)
See: https://github.com/ruby/ruby/tree/master/doc
@spring.freediver said:
By the way, I was using http://ruby-doc.com/docs/ProgrammingRuby/ for Ruby documentation, and it still lists
nitemsas a method of the Array class.Can you recommend a better site for documentation of the version of Ruby Sketchup is now using?
The ol' "Pick Axe" book you see online was written for Ruby 1.6 !
(Even the first version of SketchUp that came with an API used Ruby version 1.8.0.)
Use the Ruby core documentation for the proper version:
https://ruby-doc.org/core-2.7.2/
There is link at the top for the corresponding Standard Library docs that now also ships with SketchUp (since v2014.)
Also I have an extensive Ruby Resources list at the official SketchUp forum.
https://forums.sketchup.com/t/ruby-learning-resources-wikilists/22861/
~ regards ~