lib/yard/handlers/ruby/legacy/exception_handler.rb in yard-0.9.5 vs lib/yard/handlers/ruby/legacy/exception_handler.rb in yard-0.9.6

- old
+ new

@@ -1,7 +1,8 @@ +# frozen_string_literal: true # (see Ruby::ExceptionHandler) class YARD::Handlers::Ruby::Legacy::ExceptionHandler < YARD::Handlers::Ruby::Legacy::Base - handles /\Araise(\s|\(|\Z)/ + handles(/\Araise(\s|\(|\Z)/) process do return unless owner.is_a?(MethodObject) # Only methods yield return if owner.has_tag?(:raise)