Module: Ronin::Core::Metadata::Authors
- Defined in:
- lib/ronin/core/metadata/authors.rb,
lib/ronin/core/metadata/authors/author.rb
Overview
Adds authors metadata attribute to a class.
Example
class MyModule
include Ronin::Core::Metadata::Authors
'John Doe'
'John Smith', email: '[email protected]'
end
puts MyModule.
# John Doe
# John Smith <[email protected]>
Defined Under Namespace
Modules: ClassMethods Classes: Author
Class Method Summary collapse
-
.included(base) ⇒ Object
private
Adds ClassMethods to the class.
Class Method Details
.included(base) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Adds ClassMethods to the class.
52 53 54 |
# File 'lib/ronin/core/metadata/authors.rb', line 52 def self.included(base) base.extend ClassMethods end |