Class: Briefing::Options
- Inherits:
-
Hash
- Object
- Hash
- Briefing::Options
- Defined in:
- lib/briefing/slides.rb
Constant Summary collapse
- REVEALJS_DEFAULTS =
{ 'controls' => false, 'progress' => true, 'history' => true, 'keyboard' => true, 'overview' => true, 'center' => true, 'loop' => false, 'rtl' => false, 'autoSlide' => 0, 'mouseWheel' => false, 'rollingLinks' => false }
Instance Method Summary collapse
-
#initialize(yaml_text) ⇒ Options
constructor
A new instance of Options.
- #revealjs ⇒ Object
Constructor Details
#initialize(yaml_text) ⇒ Options
Returns a new instance of Options.
54 55 56 57 58 |
# File 'lib/briefing/slides.rb', line 54 def initialize(yaml_text) if = YAML.load(yaml_text) self.merge! end end |
Instance Method Details
#revealjs ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/briefing/slides.rb', line 60 def revealjs = {} REVEALJS_DEFAULTS.each_pair {|key, value| [key] = self[key] || value } end |