in lib/generators/aws_record/secondary_index.rb [22:35]
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