Sha256: 7d57dd045c1c63257a00002c5662a5a46a172be0b705cc5045f6605ea7f174e7

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'eac_templates/sources/fs_object'
require 'eac_templates/variables/directory'

module EacTemplates
  module Sources
    class Directory < ::EacTemplates::Sources::FsObject
      delegate :apply, :child, :children, :path, to: :applier

      # @return [Class]
      def applier_class
        ::EacTemplates::Variables::Directory
      end

      # @param path [Pathname]
      # @return [Boolean]
      def select_path?(path)
        super && path.directory?
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
eac_tools-0.61.0 sub/eac_templates/lib/eac_templates/sources/directory.rb
eac_templates-0.4.0 lib/eac_templates/sources/directory.rb
eac_tools-0.60.3 sub/eac_templates/lib/eac_templates/sources/directory.rb