Class: Templater::Actions::Touch
- Inherits:
-
Action
- Object
- Action
- Templater::Actions::Touch
- Defined in:
- lib/bowline/generators.rb
Instance Method Summary (collapse)
- - (Boolean) exists?
- - (Boolean) identical?
-
- (Touch) initialize(generator, destination, options = {})
constructor
A new instance of Touch.
- - (Object) invoke!
- - (Object) render
Constructor Details
- (Touch) initialize(generator, destination, options = {})
A new instance of Touch
9 10 11 12 13 |
# File 'lib/bowline/generators.rb', line 9 def initialize(generator, destination, ={}) self.generator = generator self.destination = destination self. = end |
Instance Method Details
- (Boolean) exists?
19 20 21 |
# File 'lib/bowline/generators.rb', line 19 def exists? false end |
- (Boolean) identical?
23 24 25 |
# File 'lib/bowline/generators.rb', line 23 def identical? false end |
- (Object) invoke!
27 28 29 30 31 |
# File 'lib/bowline/generators.rb', line 27 def invoke! callback(:before) ::FileUtils.touch(destination) callback(:after) end |
- (Object) render
15 16 17 |
# File 'lib/bowline/generators.rb', line 15 def render '' end |