Sha256: fc4faab7674b6ff97aa06035fdc401e7e3b5763e9cc5dda2eb8bdbdd287801d2
Contents?: true
Size: 400 Bytes
Versions: 7
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true module Theme module Models module SpecificationHandlers class Theme REQUIRED_FOLDERS = %w(config layout sections templates) def initialize(root) @root = root end def valid? REQUIRED_FOLDERS.all? { |required_folder| Dir.exist?(File.join(@root, required_folder)) } end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems