Module: Phlexi::Table::Options::Descriptions

Included in:
Base
Defined in:
lib/phlexi/table/options/descriptions.rb

Instance Method Summary collapse

Instance Method Details

#has_table_description?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/phlexi/table/options/descriptions.rb', line 16

def has_table_description?
  table_description.present?
end

#table_description(description = nil) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/phlexi/table/options/descriptions.rb', line 7

def table_description(description = nil)
  if description.nil?
    options[:description]
  else
    options[:description] = description
    self
  end
end