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