Class: Templater::Actions::Directory

Inherits:
File
  • Object
show all
Defined in:
lib/templater/actions/directory.rb

Instance Attribute Summary

Attributes inherited from Action

#destination, #generator, #name, #options, #source

Instance Method Summary collapse

Methods inherited from File

#exists?, #initialize, #invoke!, #revoke!

Methods inherited from Action

#relative_destination

Constructor Details

This class inherits a constructor from Templater::Actions::File

Instance Method Details

#identical?Boolean

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.

Returns:

  • (Boolean)


17
18
19
# File 'lib/templater/actions/directory.rb', line 17

def identical?
  exists?
end

#renderObject

Returns empty string

Returns

String

Empty string.



9
10
11
# File 'lib/templater/actions/directory.rb', line 9

def render
  ""
end