Module: Dill::WidgetParts::Container
- Included in:
- Document, Dill::Widget
- Defined in:
- lib/dill/widgets/parts/container.rb
Instance Method Summary collapse
- #has_no_widget?(name) ⇒ Boolean
- #has_widget?(name, *args) ⇒ Boolean (also: #widget?)
- #widget(name, *args) ⇒ Object
- #widgets(name, *args) ⇒ Object
Instance Method Details
#has_no_widget?(name) ⇒ Boolean
4 5 6 |
# File 'lib/dill/widgets/parts/container.rb', line 4 def (name) (name).absent? end |
#has_widget?(name, *args) ⇒ Boolean Also known as: widget?
8 9 10 |
# File 'lib/dill/widgets/parts/container.rb', line 8 def (name, *args) (name, *args).present? end |
#widget(name, *args) ⇒ Object
14 15 16 |
# File 'lib/dill/widgets/parts/container.rb', line 14 def (name, *args) (name).find_in(self, *args) end |
#widgets(name, *args) ⇒ Object
18 19 20 |
# File 'lib/dill/widgets/parts/container.rb', line 18 def (name, *args) (name).find_all_in(self, *args) end |