RubyGems Navigation menu

table_display 2.1.0

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.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 2.2.0 - February 18, 2020 (12.5 KB)
  2. 2.1.0 - October 17, 2018 (13.0 KB)
  3. 2.0.0 - September 04, 2016 (12.5 KB)
  4. 1.0.0 - April 21, 2013 (11.5 KB)
  5. 0.5.1 - August 18, 2012 (11.5 KB)
顯示所有版本(共 6)

Development 相依性套件 (4):

rake >= 0
sqlite3 >= 0
test-unit >= 0

擁有者:

作者:

  • Will Bryant

SHA 256 checksum:

8aaa1b26a65e29795ad076dcc6e486d3cb4d66b0e7fc290b1a155358f8426984

總下載次數 79,959

這個版本 18,112

License:

Ruby 版本需求: >= 0

相關連結: