Sha256: 08c5aee67373dc2a02ffbe3abafdaddd133b657fc7af02f8cbdcf2ba0c320e1e

Contents?: true

Size: 744 Bytes

Versions: 3

Compression:

Stored size: 744 Bytes

Contents

require 'rhet-butler/yaml-type'

module RhetButler
  class SlideRenderer < YamlType
    def self.required_config
      []
    end

    def self.optional_config
      []
    end

    def setup_defaults
    end

    def positional_options
      []
    end

    def normalize_config(coder)
      case coder.type
      when :seq
        Hash[positional_options.zip(coder.seq)]
      when :map
        coder.map
      else
        Hash[positional_options.zip([coder.scalar])]
      end
    end

    def configure
    end

    def html_class
      nil
    end
  end
end

require 'rhet-butler/slide-renderers/code'
require 'rhet-butler/slide-renderers/textile'
require 'rhet-butler/slide-renderers/markdown'
require 'rhet-butler/slide-renderers/cues'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhet-butler-0.14.1 lib/rhet-butler/slide-renderer.rb
rhet-butler-0.14.0 lib/rhet-butler/slide-renderer.rb
rhet-butler-0.13.0 lib/rhet-butler/slide-renderer.rb