Class: DynamicContent
- Inherits:
-
Object
- Object
- DynamicContent
- Defined in:
- lib/dynamic_content.rb
Constant Summary collapse
- DYNAMIC_CONTENT_CLASSES =
self.descendants
Instance Attribute Summary collapse
-
#otu ⇒ Object
Returns the value of attribute otu.
Instance Method Summary collapse
- #data ⇒ Array
-
#initialize(otu: nil, keywords: nil) ⇒ DynamicContent
constructor
A new instance of DynamicContent.
- #keyword_scopable? ⇒ Boolean
- #public_header ⇒ String
- #section_header ⇒ String
Constructor Details
#initialize(otu: nil, keywords: nil) ⇒ DynamicContent
Returns a new instance of DynamicContent.
9 10 11 12 |
# File 'lib/dynamic_content.rb', line 9 def initialize(otu: nil, keywords: nil) @otu = otu # return false if otu.nil? end |
Instance Attribute Details
#otu ⇒ Object
Returns the value of attribute otu.
6 7 8 |
# File 'lib/dynamic_content.rb', line 6 def otu @otu end |
Instance Method Details
#data ⇒ Array
28 29 30 |
# File 'lib/dynamic_content.rb', line 28 def data [] end |
#keyword_scopable? ⇒ Boolean
33 34 35 |
# File 'lib/dynamic_content.rb', line 33 def keyword_scopable? false end |
#public_header ⇒ String
23 24 25 |
# File 'lib/dynamic_content.rb', line 23 def public_header 'No header defined for this section type. Contact your developer.' end |
#section_header ⇒ String
18 19 20 |
# File 'lib/dynamic_content.rb', line 18 def section_header 'Unamed section for '#{self.class.name}." end |