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