Class: Dill::AutoTable::Row

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

Instance Attribute Summary

Attributes inherited from Widget

#root

Instance Method Summary collapse

Methods inherited from Widget

#!=, #!~, #<, #<=, #==, #=~, #>, #>=, action, #click, #diff, find_in, #has_action?, #inspect, #match, present_in?, #reload, root, selector, #text, #to_cell, #to_f, #to_i, widget, widget_delegator

Methods included from WidgetContainer

#has_widget?, #widget

Constructor Details

#initialize(settings) ⇒ Row

Returns a new instance of Row.



52
53
54
55
56
57
58
# File 'lib/dill/auto_table.rb', line 52

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

  self.cell_selector = settings.delete(:cell_selector)

  super root
end

Instance Method Details

#valuesObject



60
61
62
# File 'lib/dill/auto_table.rb', line 60

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