# File lib/facets/core/module/on_included.rb, line 11 def on_included(code) tag = caller[0].split(' ').first.split(/\/|\\/).last.gsub(/:|\.|\(|\)/, '_') old = "__included_#{tag}" module_eval %{ class << self alias_method :#{old}, :included def included(base) #{old}(base) #{code} end end } end