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.

Parameters:

  • args (Hash)


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

#otuObject

Returns the value of attribute otu.



6
7
8
# File 'lib/dynamic_content.rb', line 6

def otu
  @otu
end

Instance Method Details

#dataArray

Returns:

  • (Array)


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

def data
  []
end

#keyword_scopable?Boolean

Returns:

  • (Boolean)


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

def keyword_scopable?
  false
end

#public_headerString

Returns:

  • (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_headerString

Returns:

  • (String)


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

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