Class: Ruber::OutputWidget::ActionList
- Defined in:
- lib/ruber/output_widget.rb
Overview
Array of actions and separators (represented by nil) which allows to easily
insert an entry before or after another one
Instance Method Summary collapse
-
#insert_after(entry, *names) ⇒ self
Inserts one or more actions after a given one.
-
#insert_before(entry, *names) ⇒ self
Inserts one or more actions before a given one.
Methods inherited from Array
#only?, #sample, #to_array, #to_h
Instance Method Details
#insert_after(entry, *names) ⇒ self
Inserts one or more actions after a given one
1198 1199 1200 |
# File 'lib/ruber/output_widget.rb', line 1198 def insert_after entry, *names insert_after_or_before entry, :after, names end |
#insert_before(entry, *names) ⇒ self
Inserts one or more actions before a given one
1182 1183 1184 |
# File 'lib/ruber/output_widget.rb', line 1182 def insert_before entry, *names insert_after_or_before entry, :before, names end |