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

  author 'John Doe'
  author 'John Smith', email: 'john.smith@example.com'

end

puts MyModule.authors
# John Doe
# John Smith <john.smith@example.com>

Defined Under Namespace

Modules: ClassMethods Classes: Author

Class Method Summary collapse

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.

Parameters:



52
53
54
# File 'lib/ronin/core/metadata/authors.rb', line 52

def self.included(base)
  base.extend ClassMethods
end