Class: RuboCop::Cop::Rails::RouteSorting
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Rails::RouteSorting
show all
- Includes:
- RouteHelper
- Defined in:
- lib/rubocop/cop/rails/route_sorting.rb
Constant Summary
collapse
- MSG =
'Sort routes of the same type alphabetically within the same namespace level. ' \
'Expected order: %<expected>s.'
Instance Method Summary
collapse
#collect_routes, #collect_routes_from_file, #process_route_block, #process_route_file, #route_block?, #route_file?
Instance Method Details
#investigate(processed_source) ⇒ Object
18
19
20
|
# File 'lib/rubocop/cop/rails/route_sorting.rb', line 18
def investigate(processed_source)
process_route_file(processed_source)
end
|
#on_block(node) ⇒ Object
14
15
16
|
# File 'lib/rubocop/cop/rails/route_sorting.rb', line 14
def on_block(node)
process_route_block(node)
end
|