Method: RuboCop::AST::MethodDispatchNode#access_modifier?

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

#access_modifier?Boolean

Checks whether the dispatched method is an access modifier.

Returns:

  • (Boolean)

    whether the dispatched method is an access modifier



46
47
48
# File 'lib/rubocop/ast/node/mixin/method_dispatch_node.rb', line 46

def access_modifier?
  bare_access_modifier? || non_bare_access_modifier?
end