Class: LaTeXProjectTemplate::Cleaning
- Inherits:
-
Object
- Object
- LaTeXProjectTemplate::Cleaning
- Includes:
- Rake::DSL
- Defined in:
- lib/latex_project_template/task.rb
Constant Summary collapse
- DEFAULT_PATTERN =
["**/*~", "**/*.bak"]
Instance Attribute Summary collapse
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#product ⇒ Object
readonly
Returns the value of attribute product.
-
#temporary ⇒ Object
readonly
Returns the value of attribute temporary.
Instance Method Summary collapse
- #clean ⇒ Object
-
#initialize ⇒ Cleaning
constructor
A new instance of Cleaning.
Constructor Details
#initialize ⇒ Cleaning
Returns a new instance of Cleaning.
13 14 15 16 |
# File 'lib/latex_project_template/task.rb', line 13 def initialize @pattern = Rake::FileList.new(DEFAULT_PATTERN) @pattern.clear_exclude end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
9 10 11 |
# File 'lib/latex_project_template/task.rb', line 9 def pattern @pattern end |
#product ⇒ Object (readonly)
Returns the value of attribute product.
9 10 11 |
# File 'lib/latex_project_template/task.rb', line 9 def product @product end |
#temporary ⇒ Object (readonly)
Returns the value of attribute temporary.
9 10 11 |
# File 'lib/latex_project_template/task.rb', line 9 def temporary @temporary end |
Instance Method Details
#clean ⇒ Object
29 30 31 |
# File 'lib/latex_project_template/task.rb', line 29 def clean clean_files(@pattern) end |