Sha256: edee974fff3dd321639f647c9c1b6d0dcd10bbb513e5c6112bd3ff62634d0cf3
Contents?: true
Size: 623 Bytes
Versions: 5
Compression:
Stored size: 623 Bytes
Contents
module StyleGuide class Config attr_reader :partial_paths def self.style_guide_views_path StyleGuide::Engine.root.join("app", "views", "style_guide") end def self.style_guide_views_directories style_guide_views_path.children.select(&:directory?).reject { |d| d.basename.to_s == "style" } end def initialize(options = {}) @partial_paths = options[:partial_paths] || self.class.style_guide_views_directories end def partial_paths=(paths) if paths.is_a?(Array) @partial_paths = paths else @partial_paths = [paths] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems