Sha256: f336c3ff814c0531c48891d489a5dda045e4dada732f87d59aa3e4389eed87d2
Contents?: true
Size: 1.97 KB
Versions: 1
Compression:
Stored size: 1.97 KB
Contents
module TestApp class Namespace # Singleton method with correct param definition and incorrect return # # @param left [Integer] # @param right [Integer] # # @return [String] def self.add(left, right) left + right end # Instance method with correct param definition and incorrect return # # @param left [Integer] # @param right [Integer] # # @return [String] def add(left, right) left + right end # Untested method with documentation # # @param str [String] # # @return [String] def untested_method(str) end def undocumented end # @param foo [What] # # @return [Wow] def ignoring_invalid_types(foo) end # @return [TestApp::Namespace::Parent] def returns_generic Child.new end # @return [Child] def documents_relative 'str' end # @return no type specified here def return_tag_without_type end # @param [String] def param_without_name(unnamed) end # @return [nil] def return_nil end # @return [Namespace] def return_self self end # @return [undefined] def undefined_return end # @return [Boolean] def bool_return end # @return [Array<String>] def array_return end # @return [String] in some cases # @return [nil] otherwise def multiple_returns end # @param list [Enumerable<Integer>] # @return [nil] def enumerable_param(list) end # @param value [String] # @return [nil] def properly_tested_with_instance_double(value) end # @param value [String] # @return [nil] def improperly_tested_with_instance_double(value) end AppError = Class.new(StandardError) # @return [Fixnum] def always_raise raise AppError 1 end # @return [:foo] def returns_literal_symbol :foo end class Parent end class Child < Parent end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yardcheck-0.0.1 | test_app/lib/test_app.rb |