Sha256: a4f65bd4c1b8ae631487f9baf2e9975a644e3eef31c13471fd58266205aaa9b2

Contents?: true

Size: 402 Bytes

Versions: 86

Compression:

Stored size: 402 Bytes

Contents

require "style_guide/section"
require "forever_style_guide/partial"

module ForeverStyleGuide
  class Section < StyleGuide::Section

    def icon
      @icon ||= ForeverStyleGuide::Engine.config.style_guide.style_guide_decorators['sections'][@id]['icon']
    end

    def partials
      partial_paths.map { |path| ForeverStyleGuide::Partial.new(path, self) }.sort_by { |p| p.title }
    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/section.rb
forever_style_guide-3.2.4 lib/forever_style_guide/section.rb
forever_style_guide-3.2.3 lib/forever_style_guide/section.rb
forever_style_guide-3.2.2 lib/forever_style_guide/section.rb
forever_style_guide-3.2.1 lib/forever_style_guide/section.rb
forever_style_guide-3.2.0 lib/forever_style_guide/section.rb
forever_style_guide-3.1.5 lib/forever_style_guide/section.rb
forever_style_guide-3.1.4 lib/forever_style_guide/section.rb
forever_style_guide-3.1.3 lib/forever_style_guide/section.rb
forever_style_guide-3.1.2 lib/forever_style_guide/section.rb
forever_style_guide-3.1.1 lib/forever_style_guide/section.rb
forever_style_guide-3.1.0 lib/forever_style_guide/section.rb
forever_style_guide-3.0.41 lib/forever_style_guide/section.rb
forever_style_guide-3.0.40 lib/forever_style_guide/section.rb
forever_style_guide-3.0.39 lib/forever_style_guide/section.rb
forever_style_guide-3.0.38 lib/forever_style_guide/section.rb
forever_style_guide-3.0.37 lib/forever_style_guide/section.rb
forever_style_guide-3.0.36 lib/forever_style_guide/section.rb
forever_style_guide-3.0.35 lib/forever_style_guide/section.rb
forever_style_guide-3.0.34 lib/forever_style_guide/section.rb