Nuno Silva
Aug 31, 2018 · 1 min read

There is another convenient way of disabling for a specific “code block” (module, class, method, etc):

def very_long_method # rubocop:disable Metrics/LineLength,...
...
end

This is useful since it saves you from writing the comment to re-enable the cop

    Nuno Silva

    Written by

    Rubyist, web developer in general. Computer graphics and parallel computing advocate.