You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Nokogiri::XML::Node may be treated similarly to a hash with regard to attributes.
but one thing I miss from this hash-like behaviour is #fetch, which would raise an error if the given key doesn't exist. This can be helpful for avoiding nils being inadvertently passed around, leading to hard-to-find bugs.
Would this be worth adding?
The text was updated successfully, but these errors were encountered:
I've noted this in the ROADMAP doc and as I approach what might be a 2.0 release later this year or early next year, I'm keeping this topic top-of-mind. However, in the meantime to lower the cognitive overhead of the backlog, I'm going to close this.
The docs say
but one thing I miss from this hash-like behaviour is
#fetch
, which would raise an error if the given key doesn't exist. This can be helpful for avoiding nils being inadvertently passed around, leading to hard-to-find bugs.Would this be worth adding?
The text was updated successfully, but these errors were encountered: