module VkMusic::Utility::NodeTextChildrenReader
Read inner of text-childrens of Nokogiri::XML::Node
node
Public Class Methods
call(node)
click to toggle source
@param node [Nokogiri::XML::Node] @return [String]
# File lib/vk_music/utility/node_text_children_reader.rb, line 9 def self.call(node) node.children.select(&:text?).map(&:text).join.strip end