Class: JekyllAsciidoctorPdf::PermalinkData
- Inherits:
-
Object
- Object
- JekyllAsciidoctorPdf::PermalinkData
- Defined in:
- lib/jekyll_asciidoctor_pdf/permalink.rb
Overview
Abstract structure for a hash dictionary
We use to create a dictionary of all permalinks a its content (without frontmatter)
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#last_modified_at ⇒ Object
readonly
Returns the value of attribute last_modified_at.
-
#sidebar ⇒ Object
readonly
Returns the value of attribute sidebar.
Instance Method Summary collapse
-
#initialize(sidebar, content, filename, last_modified_at) ⇒ PermalinkData
constructor
A new instance of PermalinkData.
Constructor Details
#initialize(sidebar, content, filename, last_modified_at) ⇒ PermalinkData
Returns a new instance of PermalinkData.
11 12 13 14 15 16 |
# File 'lib/jekyll_asciidoctor_pdf/permalink.rb', line 11 def initialize(, content, filename, last_modified_at) @sidebar = @content = content @filename = filename @last_modified_at = last_modified_at end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
10 11 12 |
# File 'lib/jekyll_asciidoctor_pdf/permalink.rb', line 10 def content @content end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
10 11 12 |
# File 'lib/jekyll_asciidoctor_pdf/permalink.rb', line 10 def filename @filename end |
#last_modified_at ⇒ Object (readonly)
Returns the value of attribute last_modified_at.
10 11 12 |
# File 'lib/jekyll_asciidoctor_pdf/permalink.rb', line 10 def last_modified_at @last_modified_at end |
#sidebar ⇒ Object (readonly)
Returns the value of attribute sidebar.
10 11 12 |
# File 'lib/jekyll_asciidoctor_pdf/permalink.rb', line 10 def @sidebar end |