Class: Slidr::Config
- Inherits:
-
Object
- Object
- Slidr::Config
- Defined in:
- lib/slidr/config.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#layouts ⇒ Object
Returns the value of attribute layouts.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
-
#slides ⇒ Object
Returns the value of attribute slides.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#base ⇒ Object
Returns the value of attribute base.
5 6 7 |
# File 'lib/slidr/config.rb', line 5 def base @base end |
#layouts ⇒ Object
Returns the value of attribute layouts.
5 6 7 |
# File 'lib/slidr/config.rb', line 5 def layouts @layouts end |
#outputs ⇒ Object
Returns the value of attribute outputs.
5 6 7 |
# File 'lib/slidr/config.rb', line 5 def outputs @outputs end |
#slides ⇒ Object
Returns the value of attribute slides.
5 6 7 |
# File 'lib/slidr/config.rb', line 5 def @slides end |