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.3.6 lib/forever_style_guide/config.rb
forever_style_guide-3.3.5 lib/forever_style_guide/config.rb
forever_style_guide-3.3.4 lib/forever_style_guide/config.rb
forever_style_guide-3.3.3 lib/forever_style_guide/config.rb
forever_style_guide-3.3.2 lib/forever_style_guide/config.rb
forever_style_guide-3.3.1 lib/forever_style_guide/config.rb
forever_style_guide-3.3 lib/forever_style_guide/config.rb
forever_style_guide-3.2.18 lib/forever_style_guide/config.rb
forever_style_guide-3.2.17 lib/forever_style_guide/config.rb
forever_style_guide-3.2.16 lib/forever_style_guide/config.rb
forever_style_guide-3.2.15 lib/forever_style_guide/config.rb
forever_style_guide-3.2.14 lib/forever_style_guide/config.rb
forever_style_guide-3.2.13 lib/forever_style_guide/config.rb
forever_style_guide-3.2.12 lib/forever_style_guide/config.rb
forever_style_guide-3.2.11 lib/forever_style_guide/config.rb
forever_style_guide-3.2.10 lib/forever_style_guide/config.rb
forever_style_guide-3.2.9 lib/forever_style_guide/config.rb
forever_style_guide-3.2.8 lib/forever_style_guide/config.rb
forever_style_guide-3.2.7 lib/forever_style_guide/config.rb
forever_style_guide-3.2.6 lib/forever_style_guide/config.rb