Sha256: 9f90a7b4ed0a7e50f07474df31a24c6742f0905f495eff4d59f7bce812b3ebef

Contents?: true

Size: 398 Bytes

Versions: 403

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require_relative 'list'

module EacRubyUtils
  module Listable
    class StringList < ::EacRubyUtils::Listable::List
      protected

      def parse_labels(labels)
        if labels.first.is_a?(Hash)
          Hash[labels.first.map { |k, v| [k.to_s, v.to_s] }]
        else
          Hash[labels.map { |v| [v.to_s, v.to_s] }]
        end
      end
    end
  end
end

Version data entries

403 entries across 403 versions & 4 rubygems

Version Path
eac_tools-0.76.1 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.76.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.75.2 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_ruby_utils-0.119.2 lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.75.1 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.75.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_ruby_utils-0.119.1 lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.74.1 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.74.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.73.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_ruby_utils-0.119.0 lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.72.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_ruby_utils-0.118.1 lib/eac_ruby_utils/listable/string_list.rb
eac_ruby_utils-0.118.0 lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.70.1 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.70.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.69.1 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_ruby_utils-0.117.1 lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.69.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb
eac_tools-0.68.0 sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb