Class: Toys::Templates::Clean
- Inherits:
-
Object
- Object
- Toys::Templates::Clean
- Includes:
- Template
- Defined in:
- lib/toys/templates/clean.rb
Overview
A template for tools that clean build artifacts
Constant Summary collapse
- DEFAULT_TOOL_NAME =
Default tool name
"clean"
Instance Attribute Summary collapse
-
#name ⇒ String
writeonly
Name of the tool to create.
-
#paths ⇒ Array<String>
writeonly
An array of glob patterns indicating what to clean.
Instance Method Summary collapse
-
#initialize(name: nil, paths: []) ⇒ Clean
constructor
Create the template settings for the Clean template.
Constructor Details
#initialize(name: nil, paths: []) ⇒ Clean
Create the template settings for the Clean template.
25 26 27 28 |
# File 'lib/toys/templates/clean.rb', line 25 def initialize(name: nil, paths: []) @name = name @paths = paths end |
Instance Attribute Details
#name=(value) ⇒ String
Name of the tool to create.
36 37 38 |
# File 'lib/toys/templates/clean.rb', line 36 def name=(value) @name = value end |
#paths=(value) ⇒ Array<String>
An array of glob patterns indicating what to clean.
44 45 46 |
# File 'lib/toys/templates/clean.rb', line 44 def paths=(value) @paths = value end |