Class: DynamicContent

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

Constant Summary

DYNAMIC_CONTENT_CLASSES =
self.descendants

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (DynamicContent) initialize(otu: nil, keywords: nil)

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

- (Object) otu

Returns the value of attribute otu



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

def otu
  @otu
end

Instance Method Details

- (Array) data

Returns:

  • (Array)


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

def data
  []
end

- (Boolean) keyword_scopable?

Returns:

  • (Boolean)


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

def keyword_scopable?
  false
end

- (String) public_header

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

- (String) section_header

Returns:

  • (String)


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

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