class RuboCop::Cop::InternalAffairs::NodeFirstOrLastArgument

Checks for the use of ‘node.arguments.first` or `node.arguments.last` and suggests the use of `node.first_argument` or `node.last_argument` instead.

@example

# bad
node.arguments.first
node.arguments[0]
node.arguments.last
node.arguments[-1]

# good
node.first_argument
node.last_argument