Class: DynamicContent

Inherits:
Object
  • Object
show all
Defined in:
lib/dynamic_content.rb

Constant Summary collapse

DYNAMIC_CONTENT_CLASSES =
self.descendants

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(otu: nil, keywords: nil) ⇒ DynamicContent

Returns a new instance of DynamicContent.



8
9
10
11
# File 'lib/dynamic_content.rb', line 8

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

Returns:

  • (Array)


27
28
29
# File 'lib/dynamic_content.rb', line 27

def data
  []
end

#keyword_scopable? ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/dynamic_content.rb', line 32

def keyword_scopable?
  false
end

#public_header ⇒ String

Returns:

  • (String)


22
23
24
# File 'lib/dynamic_content.rb', line 22

def public_header
  'No header defined for this section type.  Contact your developer.'
end

#section_header ⇒ String

Returns:

  • (String)


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

def section_header
  'Unamed section for '#{self.class.name}."
end