Sha256: 2ccf7de63052ed8199adc2916bb6663eb42cd8b9cfee34589cec8af16937af83
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
module Hardmock #:nodoc: module MethodCleanout #:nodoc: SACRED_METHODS = %w|__id__ __send__ equal? object_id send nil? class kind_of? respond_to? inspect| 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 |
---|---|
hardmock-1.2.0 | lib/method_cleanout.rb |