Module: Ronin::Core::Metadata::Authors::ClassMethods
- Defined in:
- lib/ronin/core/metadata/authors.rb
Overview
Class-methods.
Instance Method Summary collapse
-
#author(name, **kwargs) ⇒ Object
Adds an author.
-
#authors ⇒ Array<Authors::Author>
The authors associated with the class.
Instance Method Details
#author(name, **kwargs) ⇒ Object
Adds an author.
119 120 121 |
# File 'lib/ronin/core/metadata/authors.rb', line 119 def (name,**kwargs) << Ronin::Core::Metadata::Authors::Author.new(name,**kwargs) end |
#authors ⇒ Array<Authors::Author>
The authors associated with the class.
67 68 69 70 71 72 73 |
# File 'lib/ronin/core/metadata/authors.rb', line 67 def @authors ||= if superclass.kind_of?(ClassMethods) superclass..dup else [] end end |