awesome-print/awesome_print

possible to hide some record attributes in ai ?

MathieuDerelle opened this issue · 1 comments

example : a model Country with an attribute :geometry containing the geometry to display on a map (i.e all the coordinates on the border)

There are long long long arrays which are unreadable in the console
(console which uses ai output :
Pry.config.print = proc { |output, value| output.puts value.ai })

Is is possible to mark this attribute :geometry in some way,
in order to not show it in ai output ?

PRs are always welcome. Is this the behavior you are looking for? (Reopen this issue if you're still interested)

Data example

a = { 'foo':'bar', 'alpha':'beta' }

Mark key alpha as not displayed (config? or on each call?)

Desired output

a = {
  'foo': 'bar'
}

...or something like that