lib/rr/blank_slate.rb in rr-0.10.11 vs lib/rr/blank_slate.rb in rr-1.0.0
- old
+ new
@@ -1,8 +1,8 @@
module RR
module BlankSlate
- class << self
+ extend(Module.new do
def call(klass)
klass.instance_eval do
instance_methods.each do |unformatted_method_name|
method_name = unformatted_method_name.to_s
unless method_name =~ /^_/ || Space.blank_slate_whitelist.any? {|whitelisted_method_name| method_name == whitelisted_method_name}
@@ -10,8 +10,8 @@
undef_method method_name
end
end
end
end
- end
+ end)
end
end
\ No newline at end of file