Skip to content

Commit

Permalink
move CantTouchThis into ExplicitImport
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Aug 24, 2011
1 parent f625117 commit 2a604b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/explicit_import.rb
@@ -1,10 +1,10 @@
CantTouchThis = Class.new do
def to_s
'<CantTouchThis>'
end
end.new

class ExplicitImport
CantTouchThis = Class.new do
def to_s
'<CantTouchThis>'
end
end.new

def self.strip(klass, excludes)
klass.class_eval do
constants = (ExplicitImport::constants_to_remove - excludes.map(&:to_s))
Expand Down

0 comments on commit 2a604b7

Please sign in to comment.