This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# ClassMethods/InstanceMethods as modules are nice. but procs are mo betta. you can't do any of the following via modules. | |
# | |
module M | |
ClassMethods = proc do | |
class << self | |
alias_method 'bar', 'foo' | |
end |