Task: Convert a Nokogiri XML Document to a Ruby Hash
Task: Convert a Nokogiri XML Document to a Ruby Hash: a task in Terminal-Lego-15k (Harbor dataset). Write a Ruby script that converts a Nokogiri XML document into a Ruby Hash, similar to Rails' Hash.from xml method, but without depending on Rails/ActiveSupport.
The task
Write a Ruby script that converts a Nokogiri XML document into a Ruby Hash, similar to Rails' `Hash.from_xml` method, but without depending on Rails/ActiveSupport.
Part of PrimeIntellect/Terminal-Lego-15k.