class RuboCop::Cop::ThreadSafety::DirChdir
def on_send(node)
def on_send(node) return unless chdir?(node) return if allow_call_with_block? && (node.block_argument? || node.parent&.block_type?) add_offense( node, message: format( MESSAGE, module: node.receiver.short_name, method: node.method_name, dot: node.loc.dot.source ) ) end