If the attribute is currently stored as a hash, then the stringified value will be the sorted, space-separated keys of the hash corresponding to true values. For example, if the attribute is currently stored as

If the attribute is currently stored as an array, then it will be converted into a hash using the array members as the hash keys. For example, if the attribute is currently stored as

[ "active", "default" ]

then it will be converted to the hash

{ active => 1, default => 1 }

Note that this conversion is potentially destructive, since it will lose information about the order of the array members and will implicitly eliminate any duplicates. You should therefore only use hash access for attributes such as class for which the order of individual values is irrelevant.

If the attribute is currently stored as a hash, then it will be converted into an array of the sorted keys of the hash corresponding to true values. For example, if the attribute is currently stored as