Method: Loki::Task::Make#initialize
- Defined in:
- lib/loki/task/make.rb
#initialize(result_pattern, source_pattern = nil, &block) ⇒ Make
Returns a new instance of Make.
5 6 7 8 9 10 11 12 |
# File 'lib/loki/task/make.rb', line 5 def initialize(result_pattern, source_pattern = nil, &block) @source_pattern = FilePattern.new(source_pattern) @result_pattern = FilePattern.new(result_pattern) @block = block @expanded = false super(source_pattern.to_s + " => " + result_pattern.to_s) @children = nil end |