Sha256: 23a57f7f447778f6b63d138e51fb23de4b6f23d1ae63a6cee0d636324c964634
Contents?: true
Size: 465 Bytes
Versions: 4
Compression:
Stored size: 465 Bytes
Contents
module Puree module XMLExtractor # Keyword mixin. # module KeywordMixin private # @return [Array<String>] def keyword_group(logical_name) xpath_result = xpath_query "/keywordGroups/keywordGroup[@logicalName='#{logical_name}']/keywordContainers/keywordContainer/freeKeywords/freeKeyword/freeKeywords/freeKeyword" data_arr = xpath_result.map { |i| i.text.strip } data_arr.uniq end end end end
Version data entries
4 entries across 4 versions & 1 rubygems