Skip to content

Instantly share code, notes, and snippets.

View vandrijevik's full-sized avatar

Vladimir Andrijevikj vandrijevik

View GitHub Profile
@ahoward
ahoward / proc-gt-module.rb
Created November 29, 2011 22:28
proc > module
#! /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