Module: TTY::Delegatable
- Included in:
- Shell::ResponseDelegation, Table::BorderDSL, Table::ColumnSet, Table::Renderer, Table::Renderer::Basic
- Defined in:
- lib/tty/support/delegatable.rb
Overview
A mixin to allow delegetable methods to be added
Instance Method Summary collapse
-
#delegatable_method(source, *methods) ⇒ self
Create delegator for each specified method.
Instance Method Details
#delegatable_method(source, *methods) ⇒ self
Create delegator for each specified method
19 20 21 22 |
# File 'lib/tty/support/delegatable.rb', line 19 def delegatable_method(source, *methods) methods.each { |method| define_delegatable_method(source, method)} self end |