Sha256: 14568c8f714bdd47ab600a8f0462913296f739606945d841649897ccb0ea6011
Contents?: true
Size: 360 Bytes
Versions: 76
Compression:
Stored size: 360 Bytes
Contents
require 'mocha/module_method' module Mocha class ModuleMethod < ClassMethod def method_exists?(method) return true if stubbee.public_methods(false).include?(method) return true if stubbee.protected_methods(false).include?(method) return true if stubbee.private_methods(false).include?(method) return false end end end
Version data entries
76 entries across 76 versions & 10 rubygems