Class: Templater::Actions::Directory
- Defined in:
- lib/templater/actions/directory.rb
Instance Attribute Summary
Attributes inherited from Action
#destination, #generator, #name, #options, #source
Instance Method Summary collapse
-
#identical? ⇒ Boolean
Checks if the content of the file at the destination is identical to the rendered result.
-
#render ⇒ Object
Returns empty string.
Methods inherited from File
#exists?, #initialize, #invoke!, #revoke!
Methods inherited from Action
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.
17 18 19 |
# File 'lib/templater/actions/directory.rb', line 17 def identical? exists? end |
#render ⇒ Object
Returns empty string
Returns
- String
-
Empty string.
9 10 11 |
# File 'lib/templater/actions/directory.rb', line 9 def render "" end |