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, find_in, #has_action?, #inspect, present_in?, #reload, root, selector, #to_f, #to_i, #to_s, 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) s = settings.dup self.cell_selector = s.delete(:cell_selector) super s 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 |