Class: Coradoc::AsciiDoc::Model::Author

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/asciidoc/model/author.rb

Overview

Author information for document headers.

Author metadata captures document author names and contact information.

Examples:

Create an author

author = Coradoc::AsciiDoc::Model::Author.new
author.first_name = "John"
author.last_name = "Doe"
author.email = "john@example.com"

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Method Summary

Methods inherited from Base

#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit

Instance Attribute Details

#emailString? (readonly)

Returns Author’s email address.

Returns:

  • (String, nil)

    Author’s email address



28
29
30
31
32
33
# File 'lib/coradoc/asciidoc/model/author.rb', line 28

class Author < Base
  attribute :first_name, :string
  attribute :last_name, :string
  attribute :email, :string
  attribute :middle_name, :string
end

#first_nameString? (readonly)

Returns Author’s first name.

Returns:

  • (String, nil)

    Author’s first name



28
29
30
31
32
33
# File 'lib/coradoc/asciidoc/model/author.rb', line 28

class Author < Base
  attribute :first_name, :string
  attribute :last_name, :string
  attribute :email, :string
  attribute :middle_name, :string
end

#last_nameString? (readonly)

Returns Author’s last name.

Returns:

  • (String, nil)

    Author’s last name



28
29
30
31
32
33
# File 'lib/coradoc/asciidoc/model/author.rb', line 28

class Author < Base
  attribute :first_name, :string
  attribute :last_name, :string
  attribute :email, :string
  attribute :middle_name, :string
end

#middle_nameString? (readonly)

Returns Author’s middle name or initial.

Returns:

  • (String, nil)

    Author’s middle name or initial



28
29
30
31
32
33
# File 'lib/coradoc/asciidoc/model/author.rb', line 28

class Author < Base
  attribute :first_name, :string
  attribute :last_name, :string
  attribute :email, :string
  attribute :middle_name, :string
end