Method: RuboCop::AST::MethodDispatchNode#bare_access_modifier?

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

#bare_access_modifier?Boolean

Checks whether the dispatched method is a bare access modifier that affects all methods defined after the macro.

Returns:

  • (Boolean)

    whether the dispatched method is a bare access modifier



55
56
57
# File 'lib/rubocop/ast/node/mixin/method_dispatch_node.rb', line 55

def bare_access_modifier?
  macro? && bare_access_modifier_declaration?
end