Class: Texas::Build::Task::RewriteMarkedTemplates
- Inherits:
-
Base
- Object
- Base
- Texas::Build::Task::RewriteMarkedTemplates
show all
- Defined in:
- lib/texas/build/task/rewrite_marked_templates.rb
Instance Attribute Summary
Attributes inherited from Base
#build
Instance Method Summary
collapse
Methods inherited from Base
#initialize
#trace, #verbose, #warning
Instance Method Details
#run ⇒ Object
5
6
7
|
# File 'lib/texas/build/task/rewrite_marked_templates.rb', line 5
def run
templates.each { |t| t.write }
end
|
#templates ⇒ Object
9
10
11
|
# File 'lib/texas/build/task/rewrite_marked_templates.rb', line 9
def templates
build.ran_templates.uniq.select { |t| t.marked_for_rewrite? }
end
|