Sha256: 7a40d385efdf7f4ae2a3535ce15e4f6caa40a67fadfdedb97135a8a5a935d66d
Contents?: true
Size: 547 Bytes
Versions: 47
Compression:
Stored size: 547 Bytes
Contents
module RR module BlankSlate 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} alias_method "__blank_slated_#{method_name}", method_name undef_method method_name end end end end end) end end
Version data entries
47 entries across 43 versions & 5 rubygems