123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::Cop::SortBlock

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, NodePattern::Macros
Instance Chain:
self, RangeHelp
Defined in: lib/rubocop/cop/mixin/sort_block.rb

Overview

Common functionality for cops checking Enumerable#sort blocks.

Instance Method Summary

Instance Method Details

#sort_range(send, node) (private)

[ GitHub ]

  
# File 'lib/rubocop/cop/mixin/sort_block.rb', line 30

def sort_range(send, node)
  range_between(send.loc.selector.begin_pos, node.loc.end.end_pos)
end