Open jeffnyman opened 10 years ago
I have only been able to try this on a Windows machine so far, but let's say you have this:
require 'ap' classes = {"Trooper" => 1, "Agent" => 2}
If I run the following:
ap classes
I get this output:
{ "Trooper" => 1, "Agent" => 2 }
The numbers are colored as well. However, if I run the following:
classes.ai
I get this:
"{\n \"Trooper\"\e[0;37m => \e[0m\e[1;34m1\e[0m,\n \"Agent\"\e[0;37m => \e[0m\e[1;34m2\e[0m\n}"
My assumption was that awesome_inspect (ai) would essentially use the same formatting as calling "ap" on the element to be printed.
I have only been able to try this on a Windows machine so far, but let's say you have this:
If I run the following:
I get this output:
The numbers are colored as well. However, if I run the following:
I get this:
My assumption was that awesome_inspect (ai) would essentially use the same formatting as calling "ap" on the element to be printed.