AuthorsClass
- Namespace
- Ancestors
-
-
Enumerable
Object
-
Contains zero or more authors of the project. Authors can be added and enumerated. Authors are set up by passing a block to #initialize and calling #author inside it.
- Example: Creating a List of Authors
Authors.new{ author 'A. U. Thor', 'a.u.thor@example.org' author 'W. R. Ither', 'w.r.ither@example.org' }
Constructor
initialize(*authorsAuthor*){ … }?#⚙
Creates a new list of authors and allows more to be added in the optionally #instance_exec’d block by calling #author inside it.
Instance Methods
+
(otherAuthors)Authors#⚙
Returns the authors of the receiver and those of other.
each{ |authorAuthor| … }self#⚙
Enumerates the authors.
eachEnumerator<
Author>
#⚙
Returns an Enumerator over the authors.