Sam Ford 9bfe423a5a
Xml: Add #element_text method
This refactors verbose code in the `Sparkle` strategy where we access
element text into a reusable `Xml#element_text` method, replacing
chained calls like `item.elements["title"]&.text&.strip&.presence`
with `Xml.element_text(item, "title")`.

`#element_text` is only used to retrieve the text of a child element
in the `Sparkle` strategy but it can also retrieve the text from the
provided element if the `child_path` argument is omitted (i.e.,
`Xml.element_text(item)`). This will allow us to also avoid similar
calls like `item.text.strip.presence` in the future.
2023-11-17 22:34:12 -05:00
..
2023-04-21 09:58:50 -07:00
2023-05-19 10:55:28 -04:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-08-10 16:08:47 +01:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00
2023-11-17 22:34:12 -05:00
2023-04-21 09:58:50 -07:00
2023-04-21 09:58:50 -07:00