Sha256: 1cd129512cadcbc243d7fe774e6ed37d52d61e5cec4fd588d168ce0381f2fa74

Contents?: true

Size: 570 Bytes

Versions: 86

Compression:

Stored size: 570 Bytes

Contents

require "style_guide/config"

module ForeverStyleGuide
  class Config < StyleGuide::Config

    def style_guide_decorators
      @style_guide_decorators ||= YAML.load(File.open(ForeverStyleGuide::Engine.root.join("config","style_guide.yml"), 'r'))['style_guide']
    end

    def self.sections_path
      File.join("forever_style_guide", "sections")
    end

    def self.bootstrap_glob
      ForeverStyleGuide::Engine.root.join("app", "views", sections_path, "*")
    end

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

  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
forever_style_guide-3.2.5 lib/forever_style_guide/config.rb
forever_style_guide-3.2.4 lib/forever_style_guide/config.rb
forever_style_guide-3.2.3 lib/forever_style_guide/config.rb
forever_style_guide-3.2.2 lib/forever_style_guide/config.rb
forever_style_guide-3.2.1 lib/forever_style_guide/config.rb
forever_style_guide-3.2.0 lib/forever_style_guide/config.rb
forever_style_guide-3.1.5 lib/forever_style_guide/config.rb
forever_style_guide-3.1.4 lib/forever_style_guide/config.rb
forever_style_guide-3.1.3 lib/forever_style_guide/config.rb
forever_style_guide-3.1.2 lib/forever_style_guide/config.rb
forever_style_guide-3.1.1 lib/forever_style_guide/config.rb
forever_style_guide-3.1.0 lib/forever_style_guide/config.rb
forever_style_guide-3.0.41 lib/forever_style_guide/config.rb
forever_style_guide-3.0.40 lib/forever_style_guide/config.rb
forever_style_guide-3.0.39 lib/forever_style_guide/config.rb
forever_style_guide-3.0.38 lib/forever_style_guide/config.rb
forever_style_guide-3.0.37 lib/forever_style_guide/config.rb
forever_style_guide-3.0.36 lib/forever_style_guide/config.rb
forever_style_guide-3.0.35 lib/forever_style_guide/config.rb
forever_style_guide-3.0.34 lib/forever_style_guide/config.rb