Sha256: 7a3643f4a774edc3762f6cb10b96bcc58ae5c898f6caec7e18902f2e55e5a4fb
Contents?: true
Size: 313 Bytes
Versions: 4
Compression:
Stored size: 313 Bytes
Contents
# Define BlankSlate in case ActiveSupport aint present unless defined? BlankSlate class BlankSlate (instance_methods+protected_instance_methods+private_instance_methods).reject { |m| m =~ /^__/ || m.to_s == 'object_id' }.each { |m| undef_method m } def initialize(me) @me = me end end end
Version data entries
4 entries across 4 versions & 1 rubygems