Class Hirb::Helpers::VerticalTable

  1. lib/hirb/helpers/vertical_table.rb

Methods

public class

  1. render

Public class methods

render (rows, options={})

Renders a vertical table using the same options as Hirb::Helpers::Table.render except for the ones below and :max_fields, :vertical and :max_width which aren’t used.

Options:

:hide_empty
Boolean which hides empty values (nil or ’’) from being displayed. Default is false.
[show source]
# File lib/hirb/helpers/vertical_table.rb, line 7
  def self.render(rows, options={})
    new(rows, {:escape_special_chars=>false, :resize=>false}.merge(options)).render
  end