CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/support/matchers/respond_to_protected.rb
Views: 11780
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