BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

table_display

v3.0.0RubyGems· Ruby

Adds support for displaying your ActiveRecord tables, named scopes, collections, or plain arrays in a table view when working in rails console, shell, or email template. Enumerable#to_table_display returns the printable strings; Object#pt calls #to_table_display on its first argument and puts out the result. Columns you haven't loaded (eg. from using :select) are omitted, and derived/calculated columns (eg. again, from using :select) are added. Both #to_table_display and Object#pt methods take :only, :except, and :methods which work like the #to_xml method to change what attributes/methods are output. The normal output uses #inspect on the data values to make them printable, so you can see what type the values had. When that's inconvenient or you'd prefer direct display, you can pass the option :inspect => false to disable inspection.

The verdict
Aging — last published 7 months ago — check before adopting. Check the repo for activity before adopting.
Check the repo for activity before adopting.
Live from the RubyGems registry · derived rules, not AI
How it scores
MaintenanceAging
PopularityNiche
SecurityClean
LicenseUnknown
DepsZero deps
Maintenance
Last published 7 months ago — check before adopting.
Popularity
143 downloads / week
Security
No known advisories for this version (OSV).
License
No license declared.
Dependencies
No runtime dependencies
Recent releases
  • 3.0.07 months ago
  • 2.2.06 years ago
  • 2.1.07 years ago
  • 2.0.09 years ago
  • 1.0.013 years ago
  • 0.5.113 years ago
  • 0.5.013 years ago