RubyGems Navigation menu

table_display 0.5.1

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 returns the printable strings; Object#pt calls #to_table 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 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.

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 2.2.0 - February 18, 2020 (12,5 ko)
  2. 2.1.0 - October 17, 2018 (13 ko)
  3. 2.0.0 - September 04, 2016 (12,5 ko)
  4. 1.0.0 - April 21, 2013 (11,5 ko)
  5. 0.5.1 - August 18, 2012 (11,5 ko)
Voir toutes les versions (6)

Dépendances de Development (3):

rake >= 0
sqlite3 >= 0

Propriétaires:

Auteurs:

  • Will Bryant

Total de contrôle SHA 256:

7b21ded8bc2eadee6e2f982ff8fa58363faf38e92eaaedc4f4c6a86eaa305662

Total de téléchargements 78 030

Pour cette version 3 171

License:

aucune

Version de Ruby requise: None

Liens: