Module: PatchedRubocop::CopCast

Defined in:
lib/ducalis/patched_rubocop/cop_cast.rb

Instance Method Summary collapse

Instance Method Details

#add_offense(node, loc, message = nil, severity = nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/ducalis/patched_rubocop/cop_cast.rb', line 5

def add_offense(node, loc, message = nil, severity = nil)
  if PatchedRubocop::CURRENT_VERSION > PatchedRubocop::ADAPTED_VERSION
    super(node, location: loc, message: message, severity: severity)
  else
    super(node, loc, message, severity)
  end
end