Method: RuboCop::AST::MethodDispatchNode#double_colon?

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

#double_colon?Boolean

Checks whether the dispatched method uses a double colon to connect the receiver and the method name.

Returns:

  • (Boolean)

    whether the method was called with a connecting dot



99
100
101
# File 'lib/rubocop/ast/node/mixin/method_dispatch_node.rb', line 99

def double_colon?
  loc.respond_to?(:dot) && loc.dot && loc.dot.is?('::')
end