class RuboCop::Cop::Style::SignalException
def on_send(node)
def on_send(node) case style when :semantic check_send(:raise, node) unless ignored_node?(node) when :only_raise return if @custom_fail_defined check_send(:fail, node) when :only_fail check_send(:raise, node) end end