Class: DashingContrib::Configuration
- Inherits:
-
Object
- Object
- DashingContrib::Configuration
- Defined in:
- lib/dashing-contrib/configuration.rb
Instance Attribute Summary collapse
-
#template_paths ⇒ Object
Returns the value of attribute template_paths.
Instance Method Summary collapse
-
#dir ⇒ Object
__dir__ is only supported >= ruby 2.0, use __FILE__ approach Gem should support wide range of ruby versions.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/dashing-contrib/configuration.rb', line 7 def initialize @template_paths = [File.("../", dir)] end |
Instance Attribute Details
#template_paths ⇒ Object
Returns the value of attribute template_paths.
5 6 7 |
# File 'lib/dashing-contrib/configuration.rb', line 5 def template_paths @template_paths end |
Instance Method Details
#dir ⇒ Object
__dir__ is only supported >= ruby 2.0, use __FILE__ approach Gem should support wide range of ruby versions
13 14 15 |
# File 'lib/dashing-contrib/configuration.rb', line 13 def dir File.dirname(__FILE__) end |