Sha256: 2430a6ecb079e4a79e29059fcc8616369e650aa0d11816b8d1203f94f7675fd9
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
require 'nokogiri' module RhetButler class SlideContents class Embed < SlideContents register "embed" register "embedded" def self.required_config %w{source} end def self.optional_config %w{filters} end def positional_options %w{source} end attr_reader :source attr_accessor :filters def configure value_from_config("source") do |source| @source = source end value_from_config("filters") do |value| @filters = value end end def content(file_set) "\n" + file_set.contents(source) + "\n" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems