Class: Dill::BaseTable

Inherits:
Widget
  • Object
show all
Defined in:
lib/dill/widgets/base_table.rb

Direct Known Subclasses

AutoTable, Table

Instance Method Summary collapse

Methods inherited from Widget

#absent?, action, #click, #diff, find_in, #gone?, #has_action?, #initialize, #inspect, #present?, present_in?, root, #root, selector, #text, #to_cell, #to_s, #value, widget, widget_delegator

Methods included from WidgetParts::Container

#has_no_widget?, #has_widget?, #widget

Methods included from WidgetParts::Struct

included

Constructor Details

This class inherits a constructor from Dill::Widget

Instance Method Details

#to_tableObject



3
4
5
6
7
# File 'lib/dill/widgets/base_table.rb', line 3

def to_table
  ensure_table_loaded

  headers.any? ? [headers, *values] : values
end