Class: RevealCK::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/reveal-ck/config.rb

Instance Method Summary collapse

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

#authorObject



15
16
17
# File 'lib/reveal-ck/config.rb', line 15

def author
  @config["author"]
end

#themeObject



19
20
21
# File 'lib/reveal-ck/config.rb', line 19

def theme
  @config["presentation"]["theme"]
end

#titleObject



11
12
13
# File 'lib/reveal-ck/config.rb', line 11

def title
  @config["title"]
end