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

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/handlers/ruby/legacy/exception_handler.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.9.5 lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.9.4 lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.9.3 lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.9.2 lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.9.1 lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.9.0 lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.8.7.6 lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.8.7.5 lib/yard/handlers/ruby/legacy/exception_handler.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
yard-0.8.7.4 lib/yard/handlers/ruby/legacy/exception_handler.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/ruby/legacy/exception_handler.rb