Class: Dill::AutoTable::Row

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

Instance Method Summary collapse

Methods inherited from Widget

#absent?, action, #click, #diff, find_in, #gone?, #has_action?, #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

#initialize(settings) ⇒ Row

Returns a new instance of Row.



54
55
56
57
58
59
60
# File 'lib/dill/widgets/auto_table.rb', line 54

def initialize(settings)
  root = settings.delete(:root)

  self.cell_selector = settings.delete(:cell_selector)

  super root
end

Instance Method Details

#valuesObject



62
63
64
# File 'lib/dill/widgets/auto_table.rb', line 62

def values
  root.all(cell_selector).map { |n| node_text(n) }
end