Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Style::DotPosition

This cop checks the . position in multi-line method calls.

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/style/dot_position.rb, line 9
def on_send(node)
  return unless node.loc.dot

  if proper_dot_position?(node)
    correct_style_detected
  else
    add_offense(node, :dot) { opposite_style_detected }
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.