2012-12-01 Colin Scott <cs / cs.berkeley.edu>

* lib/set.rb (to_a): make to_ary an alias

Sets don't play very well with arrays. For example:

irb(main):001:0> require 'set'
=> true
irb(main):002:0> s = Set.new
=> #<Set: {}>
irb(main):003:0> a = []
=> []
irb(main):004:0> s | a
=> #<Set: {}>
irb(main):005:0> a | s
*TypeError: can't convert Set into Array*

Set#to_a is already defined. By aliasing Set#to_ary to Set#to_a, the type
conversion works. This should not change the behavior of Sets otherwise.
(supressed text/html)SW5kZXg6IGxpYi9zZXQucmIKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gbGliL3NldC5yYgkocmV2aXNpb24gMzQx
NjcpCisrKyBsaWIvc2V0LnJiCSh3b3JraW5nIGNvcHkpCkBAIC0xNDUsNiArMTQ1LDkgQEAKICAg
ICBAaGFzaC5rZXlzCiAgIGVuZAogCisgICMgQWxpYXMgb2YgdG9fYQorICBhbGlhcyA6dG9fYXJ5
IDp0b19hCisKICAgZGVmIGZsYXR0ZW5fbWVyZ2Uoc2V0LCBzZWVuID0gU2V0Lm5ldykgIyA6bm9k
b2M6CiAgICAgc2V0LmVhY2ggeyB8ZXwKICAgICAgIGlmIGUuaXNfYT8oU2V0KQo=