Sha256: d5f8c6709ebb6df955b11a9e0f787cc578a3484bc0f2ba21107180ca0f9bd529

Contents?: true

Size: 455 Bytes

Versions: 27

Compression:

Stored size: 455 Bytes

Contents

module Templater
  module Actions
    class Directory < File
  
      # Returns empty string
      #
      # === Returns
      # String:: Empty string.
      def render
        ""
      end
      
      # Checks if the content of the file at the destination is identical to the rendered result.
      # 
      # === Returns
      # Boolean:: true if it is identical, false otherwise.
      def identical?
        exists?
      end      
    end
  end
end

Version data entries

27 entries across 26 versions & 3 rubygems

Version Path
templater-0.4.2 lib/templater/actions/directory.rb
templater-0.4.3 lib/templater/actions/directory.rb
templater-0.3.5 lib/templater/actions/directory.rb
templater-0.4.4 lib/templater/actions/directory.rb
templater-0.4.0 lib/templater/actions/directory.rb
templater-0.4.5 lib/templater/actions/directory.rb
templater-0.5.0 lib/templater/actions/directory.rb