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

Version Path
puree-2.9.2 lib/puree/xml_extractor/mixins/keyword_mixin.rb
puree-2.9.1 lib/puree/xml_extractor/mixins/keyword_mixin.rb
puree-2.9.0 lib/puree/xml_extractor/mixins/keyword_mixin.rb
puree-2.8.1 lib/puree/xml_extractor/mixins/keyword_mixin.rb