Class: RevealCK::Config
- Inherits:
-
Object
- Object
- RevealCK::Config
- Defined in:
- lib/reveal-ck/config.rb
Instance Method Summary collapse
- #author ⇒ Object
-
#initialize(args = {}) ⇒ Config
constructor
A new instance of Config.
- #theme ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Config
Returns a new instance of Config.
6 7 8 9 |
# File 'lib/reveal-ck/config.rb', line 6 def initialize(args={}) config_file = args[:config_file] @config = load_config config_file end |
Instance Method Details
#author ⇒ Object
15 16 17 |
# File 'lib/reveal-ck/config.rb', line 15 def @config["author"] end |
#theme ⇒ Object
19 20 21 |
# File 'lib/reveal-ck/config.rb', line 19 def theme @config["presentation"]["theme"] end |
#title ⇒ Object
11 12 13 |
# File 'lib/reveal-ck/config.rb', line 11 def title @config["title"] end |