D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
hirb-0.7.3
/
lib
/
hirb
/
helpers
/
Filename :
tab_table.rb
back
Copy
class Hirb::Helpers::TabTable < Hirb::Helpers::Table DELIM = "\t" # Renders a tab-delimited table def self.render(rows, options={}) new(rows, {:description => false}.merge(options)).render end def render_header @headers ? render_table_header : [] end def render_table_header [ format_values(@headers).join(DELIM) ] end def render_rows @rows.map { |row| format_values(row).join(DELIM) } end def render_footer [] end end