Class: Slidr::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/slidr/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



7
8
9
10
11
12
13
14
15
16
# File 'lib/slidr/config.rb', line 7

def initialize
    @base = OpenStruct.new(
        remark: "../../../#{ Slidr::Defaults::REMARK_PATH }", 
        html: "../../../#{ Slidr::Defaults::HTML_PATH }",
        structure: "../../../#{ Slidr::Defaults::STRUCTURE_PATH }",
        script: Slidr::Defaults::SCRIPT)
    @slides = []
    @layouts = {}
    @outputs = []
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



5
6
7
# File 'lib/slidr/config.rb', line 5

def base
  @base
end

#layoutsObject

Returns the value of attribute layouts.



5
6
7
# File 'lib/slidr/config.rb', line 5

def layouts
  @layouts
end

#outputsObject

Returns the value of attribute outputs.



5
6
7
# File 'lib/slidr/config.rb', line 5

def outputs
  @outputs
end

#slidesObject

Returns the value of attribute slides.



5
6
7
# File 'lib/slidr/config.rb', line 5

def slides
  @slides
end