Sha256: 865b2c98d2151fe760a47a76038c3559b45ed6ca4243b5597900efc7bdcf099b
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
module Hardmock #:nodoc: module MethodCleanout #:nodoc: SACRED_METHODS = %w|__id__ __send__ equal? object_id send nil? class kind_of? respond_to? inspect method to_s instance_variables instance_eval| def self.included(base) #:nodoc: base.class_eval do instance_methods.each { |m| undef_method m unless SACRED_METHODS.include?(m.to_s) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minilab-1.0.0-mswin32 | vendor/hardmock/lib/method_cleanout.rb |