Class: Pageflow::Admin::ExtensibleAttributesTable::RowInserter Private
- Inherits:
-
Object
- Object
- Pageflow::Admin::ExtensibleAttributesTable::RowInserter
- Defined in:
- app/views/components/pageflow/admin/extensible_attributes_table.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #at_end_of_table ⇒ Object private
-
#initialize(context, additional_rows) ⇒ RowInserter
constructor
private
A new instance of RowInserter.
- #row(name, options = {}) ⇒ Object private
Constructor Details
#initialize(context, additional_rows) ⇒ RowInserter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RowInserter.
17 18 19 20 21 |
# File 'app/views/components/pageflow/admin/extensible_attributes_table.rb', line 17 def initialize(context, additional_rows) @context = context @additional_rows = additional_rows @rendered_rows = [] end |
Instance Method Details
#at_end_of_table ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'app/views/components/pageflow/admin/extensible_attributes_table.rb', line 29 def at_end_of_table render_additional_rows(not_yet_rendered_rows) end |
#row(name, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 |
# File 'app/views/components/pageflow/admin/extensible_attributes_table.rb', line 23 def row(name, = {}, &) render_additional_rows(rows_at(:before, name)) context.row(name, , &) render_additional_rows(rows_at(:after, name)) end |