Too many information with awesome print

I use “awesome_print” and when i do the command i have the following result :

 irb(main):002:0> ap User.find(1)
    ←[1m←[36mUser Load (0.0ms)←[0m  ←[1mSELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1←[0m  [["id", 1]]
    #<User:0x57d9650> {
        :id←[0;37m => ←[0m←[1;34m1←[0m,
        :name←[0;37m => ←[0m←[0;33m"aa"←[0m,
        :email←[0;37m => ←[0m←[0;33m"aa"←[0m,
        :created_at←[0;37m => ←[0m←[0;32mTue, 26 May 2015 15:13:51 UTC +00:00←[0m,
        :updated_at←[0;37m => ←[0m←[0;32mTue, 26 May 2015 15:13:51 UTC +00:00←[0m

But i have some informations like ←[0;37m.
I have two question :

  • What does that mean?
  • How do you delete them in order to print whithout this things like :

    :id => 1,
    :first_name => "aa",
    :last_name => "aa"
    :created_at => Tue, 26 May 2015 15:13:51 UTC +00:00
    

Thank you in advance.


Source: ruby

Leave a Reply