Module: TTY::Delegatable
- 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
18 19 20 21 22 23 |
# File 'lib/tty/support/delegatable.rb', line 18 def delegatable_method(source, *methods) methods.each do |method| define_delegatable_method(source, method) end self end |