Class: Module

Inherits:
Object show all
Defined in:
lib/ayril/core_ext/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#forward(new, old) ⇒ Object

MacRuby still cannot alias some Cocoa methods.



33
# File 'lib/ayril/core_ext/core_ext.rb', line 33

def forward(new, old) define_method(new) { |*args| self.send old, *args } end