Module: Spec::Runner::Formatter::NOOPMethodMissing
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
15
16
17
|
# File 'lib/spec/runner/formatter/no_op_method_missing.rb', line 15
def method_missing(sym, *args)
end
|
Instance Method Details
#respond_to?(message, include_private = false) ⇒ Boolean
5
6
7
8
9
10
11
|
# 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
|