Class: StyleGuide::Config

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Config



9
10
11
# File 'lib/style_guide/config.rb', line 9

def initialize(options = {})
  @paths = options[:paths] || [self.class.bootstrap_glob]
end

Instance Attribute Details

#pathsObject

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_globObject



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

#sectionsObject



21
22
23
# File 'lib/style_guide/config.rb', line 21

def sections
  StyleGuide::Section.from_paths(expanded_paths)
end