Module: Ponder::Delegate
- Included in:
- Thaum
- Defined in:
- lib/ponder/delegate.rb
Instance Method Summary collapse
Instance Method Details
#delegate ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/ponder/delegate.rb', line 3 def delegate thaum = self (IRC.instance_methods + [:configure, :on, :connect, :reload!, :reloading?]).each do |method| Object.send(:define_method, method) { |*args, &block| thaum.send(method, *args, &block) } end end |