method
respond_to?
1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Runner::Formatter::NOOPMethodMissing
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
respond_to?(message, include_private = false)
public
Hide source
# File lib/spec/runner/formatter/no_op_method_missing.rb, line 5 def respond_to?(message, include_private = false) if include_private true else !private_methods.any? {|m| [message.to_s, message.to_sym].include?(m)} end end