Class | Rake::TaskArguments |
In: |
lib/rake.rb
|
Parent: | Object |
TaskAguments manage the arguments passed to a task.
names | [R] |
# File lib/rake.rb, line 289 289: def initialize(names, values, parent=nil) 290: @names = names 291: @parent = parent 292: @hash = {} 293: names.each_with_index { |name, i| 294: @hash[name.to_sym] = values[i] 295: } 296: end
Find an argument value by name or index.
# File lib/rake.rb, line 306 306: def [](index) 307: lookup(index.to_sym) 308: end
# File lib/rake.rb, line 314 314: def method_missing(sym, *args, &block) 315: lookup(sym.to_sym) 316: end