Class: Aardi::PageContent
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(src_content, title, metadata = {}) ⇒ PageContent
constructor
A new instance of PageContent.
- #output ⇒ Object
Methods inherited from Content
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
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/aardi/page_content.rb', line 5 def @metadata end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/aardi/page_content.rb', line 5 def title @title end |