class AwsRecord::Generators::SecondaryIndex
def get_option_value(raw_option)
def get_option_value(raw_option) case raw_option when /hkey\{(\w+)\}/ [:hash_key, ::Regexp.last_match(1)] when /rkey\{(\w+)\}/ [:range_key, ::Regexp.last_match(1)] when /proj_type\{(\w+)\}/ [:projection_type, ::Regexp.last_match(1)] else raise ArgumentError, "Invalid option for secondary index #{raw_option}" end end