class Ducalis::RaiseWithoutErrorClass
Constants
- OFFENSE
Public Instance Methods
on_send(node)
click to toggle source
# File lib/ducalis/cops/raise_without_error_class.rb, line 11 def on_send(node) _who, what, *args = *node return if what != :raise return if args.first && args.first.type != :str add_offense(node, :expression, OFFENSE) end