Method: RuboCop::AST::MethodDispatchNode#setter_method?
- Defined in:
- lib/rubocop/ast/node/mixin/method_dispatch_node.rb
#setter_method? ⇒ Boolean
Checks whether the dispatched method is a setter method.
80 81 82 |
# File 'lib/rubocop/ast/node/mixin/method_dispatch_node.rb', line 80 def setter_method? loc.respond_to?(:operator) && loc.operator end |