Example: ``` ruby Side.values_and_names { |val, name| [val, name] } ``` And `names_and_values`: ``` ruby Side.names_and_values { |name, val| [name, val] } ``` it would be convenient to pass into options for select in Rails for example.
Example:
And
names_and_values:it would be convenient to pass into options for select in Rails for example.