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
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
ginst-2009.12.8 vendor/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
ginst-2009.11.24 vendor/gems/templater-1.0.0/lib/templater/actions/directory.rb
ginst-2009.11.23 vendor/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.10.17 vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.10.16 vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.10.15 vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
middleman-0.10.14 vendor/gems/gems/templater-1.0.0/lib/templater/actions/directory.rb
ginst-2.0.1 vendor/gems/templater-1.0.0/lib/templater/actions/directory.rb
ginst-2.0.0 vendor/gems/templater-1.0.0/lib/templater/actions/directory.rb
templater-1.0.0 lib/templater/actions/directory.rb
templater-0.3.3 lib/templater/actions/directory.rb
templater-0.3.4 lib/templater/actions/directory.rb
templater-0.4.1 lib/templater/actions/directory.rb