Class: TableHelper::SimpleColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/table_for/simple_column.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Column

#html, #title

Instance Method Summary collapse

Methods inherited from Column

#draw_title, #initialize

Constructor Details

This class inherits a constructor from TableHelper::Column

Instance Method Details

#content_for(record) ⇒ Object



3
4
5
# File 'lib/table_for/simple_column.rb', line 3

def content_for(record)
  record.send(@attr).to_s
end