Skip to content

Instantly share code, notes, and snippets.

View leonelgalan's full-sized avatar

Leonel Galán leonelgalan

View GitHub Profile
@leonelgalan
leonelgalan / enum.rb
Created October 18, 2012 21:51
A gem I plan to write
module Enum
def self.included(base)
#TODO: learn difference between extend and include (send :include, )
base.extend ClassMethods
super
end
module ClassMethods
def enum(args)
# Constants