Class: DocTemplate::Tables::Metadata

Inherits:
Base
  • Object
show all
Defined in:
lib/doc_template/tables/metadata.rb

Constant Summary collapse

HEADER_LABEL =
'document-metadata'
HTML_VALUE_FIELDS =
%w(description lesson-objective look-fors materials preparation relationship-to-eny1).freeze

Constants inherited from Base

Base::SPLIT_REGEX

Instance Attribute Summary

Attributes inherited from Base

#data, #errors

Instance Method Summary collapse

Methods inherited from Base

#collect_and_render_tags, #fetch_materials, #initialize, parse, #parse_in_context, #table_exist?

Constructor Details

This class inherits a constructor from DocTemplate::Tables::Base

Instance Method Details

#parse(fragment, *_args) ⇒ Object



9
10
11
12
13
# File 'lib/doc_template/tables/metadata.rb', line 9

def parse(fragment, *_args)
  super
  @data['subject'] = @data['subject'].to_s.downcase if @data.present?
  self
end