Sha256: 58d06e250d84cad82818ce657c30fb65abfe78808017a53600b0489c0b5f3d69
Contents?: true
Size: 755 Bytes
Versions: 5
Compression:
Stored size: 755 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 end
Version data entries
5 entries across 5 versions & 1 rubygems