# File lib/facets/more/cut.rb, line 161 def cut( cutclass, &block ) case cutclass when Cut::Stub cutname = cutclass.cutname cutclass = cutclass.cutclass else cutname = nil end # How to handle main, but not other instance spaces? mod = (Module === self ? self : Object) # We don't call Cut.new b/c we want to set the module name #cut = Cut.new(cutclass,&block) cut = Cut.create mod.const_set(cutname, cut) # <<- this is what we don't have in Cut.new cut.module_eval(&block) proxy = cutclass.proxycut! proxy.module_eval { include cut } cut end