Module: MotionPrime::DelegateMixin
- Included in:
- CollectionDelegate, Section, TableDelegate
- Defined in:
- motion-prime/sections/_delegate_mixin.rb
Instance Method Summary collapse
Instance Method Details
#clear_delegated ⇒ Object
8 9 10 |
# File 'motion-prime/sections/_delegate_mixin.rb', line 8 def clear_delegated Array.wrap(@delegated_views).each { |view| view.setDelegate(nil) } end |
#delegated_by(view) ⇒ Object
3 4 5 6 |
# File 'motion-prime/sections/_delegate_mixin.rb', line 3 def delegated_by(view) @delegated_views ||= [] @delegated_views << view end |