Sha256: bcc851512fd7747e23fa3e3a8ac40e4fa58f35ab13672e63b3248535908d8e8b
Contents?: true
Size: 1.43 KB
Versions: 4
Compression:
Stored size: 1.43 KB
Contents
require 'rhet-butler/yaml-schema' require 'rhet-butler/file-loading' require 'rhet-butler/include-processor' require 'rhet-butler/slide-processor' require 'rhet-butler/filter-resolver' module RhetButler class SlideLoader def initialize(slide_files, configuration) @file_set = slide_files @named_filter_lists = configuration.named_filter_lists @default_content_filters = configuration.default_content_filters @default_note_filters = configuration.default_note_filters @root_slide = configuration.root_slide @root_group = SlideGroup.new @blueprint = configuration.arrangement_blueprint end def load_slides root_group = SlideGroup.new includer = Includer.new includer.path = @root_slide root_group.slides = [includer] loading = FileLoading.new(@file_set) including = IncludeProcessor.new(loading) including.root_group = root_group including.traverse filter_resolver = FilterResolver.new filter_resolver.root_group = root_group filter_resolver.named_filter_lists = @named_filter_lists filter_resolver.default_content_filters = @default_content_filters filter_resolver.default_note_filters = @default_note_filters filter_resolver.traverse processor = SlideProcessor.new processor.root_group = root_group processor.blueprint = @blueprint processor.process return root_group end end end
Version data entries
4 entries across 4 versions & 1 rubygems