Class: Dill::AutoTable::Row
- Defined in:
- lib/dill/widgets/auto_table.rb
Instance Method Summary collapse
-
#initialize(settings) ⇒ Row
constructor
A new instance of Row.
- #values ⇒ Object
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
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
#values ⇒ Object
62 63 64 |
# File 'lib/dill/widgets/auto_table.rb', line 62 def values root.all(cell_selector).map { |n| node_text(n) } end |