Sha256: 1d9f04f6da256087c22736a3a04d15d25175f82e834fba177645a1e91156eb0f
Contents?: true
Size: 946 Bytes
Versions: 37
Compression:
Stored size: 946 Bytes
Contents
@title_background_image_properties ||= {} default_title_backgroud_image_properties = { "as_large_as_possible" => true, "align" => "center", "assign_box" => false, "keep_ratio" => true, } match(TitleSlide) do |slides| slides.each do |slide| image_properties = default_title_backgroud_image_properties.dup @title_background_image_properties.each do |key, value| value = value.to_s if value.is_a?(Symbol) image_properties[key.to_s.gsub(/-/, "_")] = value end background_image = slide["background-image"] || @title_background_image if background_image.nil? theme_exit("must specify 'background-image' slide property or " \ "@title_background_image!!") end properties = { :file_name => find_file(background_image), :proc_name => "title-background-image", :properties => image_properties, } apply_background_image_property(slide, properties) end end
Version data entries
37 entries across 37 versions & 1 rubygems