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