Sha256: cfdcb44448ca873a69d2d56f06daa76d6fb29254a6e84335a34fa821881c0840

Contents?: true

Size: 558 Bytes

Versions: 3

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

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

module EacTemplates
  module Sources
    class File < ::EacTemplates::Sources::FsObject
      delegate :apply, :apply_to_file, :content, :path, :variables, to: :applier

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

      # @param path [Pathname]
      # @return [Boolean]
      def select_path?(path)
        super && path.file?
      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/file.rb
eac_templates-0.4.0 lib/eac_templates/sources/file.rb
eac_tools-0.60.3 sub/eac_templates/lib/eac_templates/sources/file.rb