class RuboCop::Cop::Rails::RootPathnameMethods
def build_path_glob_replacement(path)
def build_path_glob_replacement(path) receiver = range_between(path.source_range.begin_pos, path.children.first.loc.selector.end_pos).source argument = path.arguments.one? ? path.first_argument.source : join_arguments(path.arguments) "#{receiver}.glob(#{argument})" end