Class: Module

Inherits:
Object show all
Defined in:
lib/rant/archive/rubyzip/stdrubyext.rb

Overview

:nodoc:all

Instance Method Summary collapse

Instance Method Details

#forward_message(forwarder, *messagesToForward) ⇒ Object


102
103
104
105
106
107
108
# File 'lib/rant/archive/rubyzip/stdrubyext.rb', line 102

def forward_message(forwarder, *messagesToForward)
  methodDefs = messagesToForward.map { 
    |msg| 
    "def #{msg}; #{forwarder}(:#{msg}); end"
  }
  module_eval(methodDefs.join("\n"))
end