Class: RhetButler::SlideRenderer
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from YamlType
#check_config_hash, #init_with, #initialize, register, #value_from_config
Class Method Details
.optional_config ⇒ Object
9
10
11
|
# File 'lib/rhet-butler/slide-renderer.rb', line 9
def self.optional_config
[]
end
|
.required_config ⇒ Object
5
6
7
|
# File 'lib/rhet-butler/slide-renderer.rb', line 5
def self.required_config
[]
end
|
Instance Method Details
31
32
|
# File 'lib/rhet-butler/slide-renderer.rb', line 31
def configure
end
|
#html_class ⇒ Object
34
35
36
|
# File 'lib/rhet-butler/slide-renderer.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-renderer.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_options ⇒ Object
16
17
18
|
# File 'lib/rhet-butler/slide-renderer.rb', line 16
def positional_options
[]
end
|
#setup_defaults ⇒ Object
13
14
|
# File 'lib/rhet-butler/slide-renderer.rb', line 13
def setup_defaults
end
|