Method: RuboCop::AST::MethodDispatchNode#non_bare_access_modifier?

Defined in:
lib/rubocop/ast/node/mixin/method_dispatch_node.rb

#non_bare_access_modifier?Boolean

Checks whether the dispatched method is a non-bare access modifier that affects only the method it receives.

Returns:

  • (Boolean)

    whether the dispatched method is a non-bare access modifier



64
65
66
# File 'lib/rubocop/ast/node/mixin/method_dispatch_node.rb', line 64

def non_bare_access_modifier?
  macro? && non_bare_access_modifier_declaration?
end