Class: StyleGuide::Config
- Inherits:
-
Object
- Object
- StyleGuide::Config
- Defined in:
- lib/style_guide/config.rb
Instance Attribute Summary collapse
-
#paths ⇒ Object
Returns the value of attribute paths.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
- #sections ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Config
9 10 11 |
# File 'lib/style_guide/config.rb', line 9 def initialize( = {}) @paths = [:paths] || [self.class.bootstrap_glob] end |
Instance Attribute Details
#paths ⇒ Object
Returns the value of attribute paths.
3 4 5 |
# File 'lib/style_guide/config.rb', line 3 def paths @paths end |
Class Method Details
.bootstrap_glob ⇒ Object
5 6 7 |
# File 'lib/style_guide/config.rb', line 5 def self.bootstrap_glob StyleGuide::Engine.root.join("app", "views", "bootstrap", "*") end |
Instance Method Details
#sections ⇒ Object
21 22 23 |
# File 'lib/style_guide/config.rb', line 21 def sections StyleGuide::Section.from_paths() end |