Class: LaTeXProjectTemplate::Cleaning

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/latex_project_template/task.rb

Constant Summary collapse

DEFAULT_PATTERN =
["**/*~", "**/*.bak"]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCleaning

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

#patternObject (readonly)

Returns the value of attribute pattern.



9
10
11
# File 'lib/latex_project_template/task.rb', line 9

def pattern
  @pattern
end

#productObject (readonly)

Returns the value of attribute product.



9
10
11
# File 'lib/latex_project_template/task.rb', line 9

def product
  @product
end

#temporaryObject (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

#cleanObject



29
30
31
# File 'lib/latex_project_template/task.rb', line 29

def clean
  clean_files(@pattern)
end