Module: HS::ChapterLoader

Includes:
ElementLoader, XMLParser
Included in:
Chapter
Defined in:
lib/hs/loaders/chapter_loader.rb

Constant Summary collapse

CUSTOM_LOADERS =
%i[title intro modules].freeze

Instance Method Summary collapse

Methods included from ElementLoader

#load_element, #load_elements

Methods included from XMLParser

#get_text, #parse_xml

Instance Method Details

#load_chapter(course, xml, &block) ⇒ Object



13
14
15
# File 'lib/hs/loaders/chapter_loader.rb', line 13

def load_chapter(course, xml, &block)
  create_chapter(course, parse_xml(xml), &block)
end