module AwsCliConfigParser::Refined::Arrays

Public Instance Methods

index_by() { |value| ... } click to toggle source
# File lib/aws_cli_config_parser/refined/arrays.rb, line 6
def index_by
  each_with_object({}){ |value, index| index[yield(value)] = value }
end