lib/rubocop/cop/lint/non_deterministic_require_order.rb
# Returns range of last argument including comma and whitespace.
#
# @return [Parser::Source::Range]
#
Returns range of last argument including comma and whitespace.
Returns range of last argument including comma and whitespace .
def last_arg_range(node)
          node.arguments.last.source_range.with(
            begin_pos: node.arguments[-2].source_range.end_pos
          )
        end
def last_arg_range ( node ) node . arguments . last . source_range . with ( begin_pos : node . arguments [ - 2 ] . source_range . end_pos ) end
Returns range of last argument including comma and whitespace.
Returns range of last argument including comma and whitespace .
None
Parser::Source::Range
node
<not_specific>