Module: Phlexi::Table::Options::Captions

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

Instance Method Summary collapse

Instance Method Details

#has_table_caption?Boolean

Returns:

  • (Boolean)


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

def has_table_caption?
  table_caption.present?
end

#table_caption(caption = nil) ⇒ Object



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

def table_caption(caption = nil)
  if caption.nil?
    options[:caption]
  else
    options[:caption] = caption
    self
  end
end