Class: RhetButler::SlideContents

Inherits:
YamlType
  • Object
show all
Defined in:
lib/rhet-butler/slide-contents.rb,
lib/rhet-butler/slide-contents/embed.rb

Direct Known Subclasses

Embed

Defined Under Namespace

Classes: Embed

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from YamlType

#check_config_hash, #init_with, #initialize, register, #value_from_config

Constructor Details

This class inherits a constructor from RhetButler::YamlType

Class Method Details

.optional_configObject



9
10
11
# File 'lib/rhet-butler/slide-contents.rb', line 9

def self.optional_config
  []
end

.required_configObject



5
6
7
# File 'lib/rhet-butler/slide-contents.rb', line 5

def self.required_config
  []
end

Instance Method Details

#configureObject



31
32
# File 'lib/rhet-butler/slide-contents.rb', line 31

def configure
end

#html_classObject



34
35
36
# File 'lib/rhet-butler/slide-contents.rb', line 34

def html_class
  nil
end

#normalize_config(coder) ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/rhet-butler/slide-contents.rb', line 20

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

#positional_optionsObject



16
17
18
# File 'lib/rhet-butler/slide-contents.rb', line 16

def positional_options
  []
end

#setup_defaultsObject



13
14
# File 'lib/rhet-butler/slide-contents.rb', line 13

def setup_defaults
end