CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/support/matchers/respond_to_protected.rb
Views: 1904
1
RSpec::Matchers.define :respond_to_protected do |method_name|
2
protected_and_private = true
3
4
match do |receiver|
5
receiver.respond_to?(method_name, protected_and_private)
6
end
7
end
8