Class: Aardi::PageContent

Inherits:
Content
  • Object
show all
Defined in:
lib/aardi/page_content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Content

#output_hash

Constructor Details

#initialize(src_content, title, metadata = {}) ⇒ PageContent

Returns a new instance of PageContent.



7
8
9
10
11
# File 'lib/aardi/page_content.rb', line 7

def initialize(src_content, title,  = {})
  super(src_content)
  @title = title
  @metadata = 
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



5
6
7
# File 'lib/aardi/page_content.rb', line 5

def 
  @metadata
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/aardi/page_content.rb', line 5

def title
  @title
end

Instance Method Details

#contentObject



13
14
15
# File 'lib/aardi/page_content.rb', line 13

def content
  @src_content
end

#outputObject



17
18
19
# File 'lib/aardi/page_content.rb', line 17

def output
  @output ||= Aardi.ledger[:template].render(self)
end