Class: YardDocExample::MyClass Abstract Deprecated
- Inherits:
-
Object
- Object
- YardDocExample::MyClass
- Defined in:
- lib/yard_doc_example.rb
Overview
Deprecated.
Use MyOtherClass instead
This class is abstract.
An old implementation, is replaced by MyOtherClass
Instance Attribute Summary collapse
-
#attribute_name ⇒ String
a full description of the attribute.
-
#count ⇒ Number
readonly
The number of items.
-
#name_readonly ⇒ Hash
readonly
description of a readonly attribute.
-
#name_writeonly ⇒ Array<String>
writeonly
description of writeonly attribute.
Instance Method Summary collapse
-
#do_something(arr, arr2, opts:) ⇒ String?
deprecated
Deprecated.
Use YardDocExample::MyOtherClass#do_something instead of this method because that one is newer.
Instance Attribute Details
#attribute_name ⇒ String
a full description of the attribute
21 22 23 |
# File 'lib/yard_doc_example.rb', line 21 def attribute_name @attribute_name end |
#count ⇒ Number (readonly)
Returns the number of items.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/yard_doc_example.rb', line 21 class MyClass # # @see http://example.com Description of URL # @see MyOtherClass#do_something # # @deprecated Use {MyOtherClass#do_something} instead of this method because # that one is newer. # # @private # # @param [Array<String>] arr the arguments passed from input. This # array will be modified. # @param arr2 [Array<String, Symbol>] the list of strings and symbols. # @param [Hash] opts the options to create a message with. # @option opts [String] :subject The subject # @option opts [String] :from ('nobody') From address # @option opts [String] :to Recipient email # @option opts [String] :body ('') The body # # Some code snippet: # MyClass.new.do_something # # @example Do someting # MyClass.new.do_something # # @raise [RuntimeError] description # # @return [String, nil] the successful result or nil # if an error occurred def do_something(arr, arr2, opts:) end end |
#name_readonly ⇒ Hash (readonly)
description of a readonly attribute
21 22 23 |
# File 'lib/yard_doc_example.rb', line 21 def name_readonly @name_readonly end |
#name_writeonly=(value) ⇒ Array<String> (writeonly)
description of writeonly attribute
21 22 23 |
# File 'lib/yard_doc_example.rb', line 21 def name_writeonly=(value) @name_writeonly = value end |
Instance Method Details
#do_something(arr, arr2, opts:) ⇒ String?
Deprecated.
Use YardDocExample::MyOtherClass#do_something instead of this method because that one is newer.
Some code snippet:
MyClass.new.do_something
50 51 |
# File 'lib/yard_doc_example.rb', line 50 def do_something(arr, arr2, opts:) end |