Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> x = EmailAddress.find(1)
- => #<EmailAddress:0x3714938 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>
- >> y = EmailAddress.find(1)
- => #<EmailAddress:0x37110e4 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>
- >> a = [x, y]
- => [#<EmailAddress:0x3714938 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>, #<EmailAddress:0x37110e4 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>]
- >> a
- => [#<EmailAddress:0x3714938 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>, #<EmailAddress:0x37110e4 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>]
- >> a.uniq
- => [#<EmailAddress:0x3714938 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>, #<EmailAddress:0x37110e4 @attributes={"name"=>nil, "updated_at"=>"2007-06-08 16:18:44", "crypt"=>"d4bf5ca873b0f2c030e8f5be74d92e33", "id"=>"1", "address"=>"eunji@deeptechinc.com", "created_at"=>"2007-06-08 16:18:44"}>]
- >>
Add Comment
Please, Sign In to add comment