Sha256: f76ebcaca1f1caae104550ffa2ca583dcbc5bf3eb546642f117f90907362fb09
Contents?: true
Size: 477 Bytes
Versions: 46
Compression:
Stored size: 477 Bytes
Contents
# (see Ruby::ExceptionHandler) class YARD::Handlers::Ruby::Legacy::ExceptionHandler < YARD::Handlers::Ruby::Legacy::Base handles /\Araise(\s|\(|\Z)/ process do return unless owner.is_a?(MethodObject) # Only methods yield return if owner.has_tag?(:raise) klass = statement.tokens.to_s[/^raise[\(\s]*(#{NAMESPACEMATCH})\s*(?:\)|,|\s(?:if|unless|until)|;|(?:(?:\.|\:\:)\s*)?new|$)/, 1] owner.add_tag YARD::Tags::Tag.new(:raise, '', klass) if klass end end
Version data entries
46 entries across 39 versions & 7 rubygems