Sha256: 382b484649abcc9dafc549bb31e54bbb46d1c5555f629bf2d4919db757d9c770

Contents?: true

Size: 990 Bytes

Versions: 26

Compression:

Stored size: 990 Bytes

Contents

class Testing
  # Ignore yields outside methods
  raise NoMethodError, "reason"
  
  # Should document this
  def mymethod
    raise ArgumentError, "Argument is missing"
  end
  
  # Don't document this
  def mymethod2
    raise(a) 
  end
  
  # Don't document this (docstring takes precedence)
  # @raise [A]
  def mymethod3 
    raise SomethingElse
  end
  
  # Only document the first one (limitation of exc handler)
  def mymethod4 
    raise(A)
    raise B, "Argument", somethingelse
  end
  
  def mymethod5
    raise YARD::Parser::UndocumentableError
  end
  
  def mymethod6
    raise YARD::Handlers.constants("test")
  end
  
  def mymethod7
    raise MethodCall('argument')
  end
  
  def mymethod8
    raise ExceptionClass.new('blah')
  end

  def mymethod9
    obj.raise IgnoreMe
	obj.raise(IgnoreMe)
  end
  
  def mymethod10
    raise ArgumentError 'Message' # actually a method call
  end
  
  def mymethod11
    raise foo('bar')
  end
  
  def mymethod12
    raise
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
challah-0.6.2 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.6.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.6.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.5.4 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.5.3 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.5.2 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.5.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.5.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.4.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.4.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.3.5 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.3.4 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.3.3 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.3.2 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.3.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.3.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.2.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
challah-0.2.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/exception_handler_001.rb.txt
yard-0.7.5 spec/handlers/examples/exception_handler_001.rb.txt
nutshell-crm-0.0.6.alpha vendor/bundle/gems/yard-0.7.4/spec/handlers/examples/exception_handler_001.rb.txt