yard_doc_example 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/yard_doc_example.rb +60 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fb8e0f5d3654e7c8386194f578be191aa72dd7f9845c9443ca1e73e50ddf479c
4
+ data.tar.gz: e8fd51fb38b1fee78bd2f5d294e27c5b06d804f4f682f4097f7d55d56bb845e0
5
+ SHA512:
6
+ metadata.gz: d31ff178a5cb88dc82c333ebd846bd97a21a45b3654e388fb1d30ee98bb51a95c6d7bd05a7c3a701329641d8610f1f0982bc48065a3ebbf85c7b5a5135cc7597
7
+ data.tar.gz: 4673a8dcf76360b264e453a880fa206248b324175a0751c2497903962e725e9d3c6dd0d22d5e2e9640a02a401016211c9692129daabd222a5542e205c2e31b51
@@ -0,0 +1,60 @@
1
+ # Description of the module
2
+ # @since 0.6.0
3
+ module YardDocExample
4
+
5
+ # An old implementation, is replaced by {YardDocExample::MyOtherClass}
6
+ #
7
+ # @author Jane Doe
8
+ # @abstract
9
+ # @since 0.6.0
10
+ # @deprecated Use {MyOtherClass} instead
11
+ #
12
+ # @attr [String] attribute_name a full description of the attribute
13
+ # @attr_reader [Hash] name_readonly description of a readonly attribute
14
+ # @attr_writer [Array<String>] name_writeonly description of writeonly attribute
15
+ # @!attribute [r] count
16
+ # @return [Number] the number of items
17
+ #
18
+ # @see https://rubydoc.info/gems/yard/file/docs/GettingStarted.md Getting Started guide with YARD
19
+ # @see https://www.rubydoc.info/gems/yard/file/docs/Tags.md YARD Tags
20
+ # @see https://gist.github.com/chetan/1827484 YARD cheat sheet
21
+ class MyClass
22
+ #
23
+ # @see http://example.com Description of URL
24
+ # @see MyOtherClass#do_something
25
+ #
26
+ # @deprecated Use {MyOtherClass#do_something} instead of this method because
27
+ # that one is newer.
28
+ #
29
+ # @private
30
+ #
31
+ # @param [Array<String>] arr the arguments passed from input. This
32
+ # array will be modified.
33
+ # @param arr2 [Array<String, Symbol>] the list of strings and symbols.
34
+ # @param [Hash] opts the options to create a message with.
35
+ # @option opts [String] :subject The subject
36
+ # @option opts [String] :from ('nobody') From address
37
+ # @option opts [String] :to Recipient email
38
+ # @option opts [String] :body ('') The body
39
+ #
40
+ # Some code snippet:
41
+ # MyClass.new.do_something
42
+ #
43
+ # @example Do someting
44
+ # MyClass.new.do_something
45
+ #
46
+ # @raise [RuntimeError] description
47
+ #
48
+ # @return [String, nil] the successful result or nil
49
+ # if an error occurred
50
+ def do_something(arr, arr2, opts:)
51
+ end
52
+ end
53
+
54
+ class MyOtherClass
55
+ # @todo implement me
56
+ # should do much better than last time
57
+ def do_something
58
+ end
59
+ end
60
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yard_doc_example
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Dapeng Li
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: An example of using YARD
14
+ email: dapeng@example.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/yard_doc_example.rb
20
+ homepage: https://rubygems.org/gems/yard_doc_example
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.0.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: An example of using YARD
43
+ test_files: []