Method: Transpec::Syntax::MethodStub.target_method?
- Defined in:
- lib/transpec/syntax/method_stub.rb
.target_method?(receiver_node, method_name) ⇒ Boolean
16 17 18 |
# File 'lib/transpec/syntax/method_stub.rb', line 16 def self.target_method?(receiver_node, method_name) !receiver_node.nil? && [:stub, :unstub, :stub!, :unstub!].include?(method_name) end |