Module: HS::ModuleLoader

Includes:
ElementLoader, XMLParser
Included in:
Module
Defined in:
lib/hs/loaders/module_loader.rb

Constant Summary collapse

CUSTOM_LOADERS =
i[title intro].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_module(chapter, xml) ⇒ Object



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

def load_module(chapter, xml)
  create_module(chapter, parse_xml(xml))
end