diff options
Diffstat (limited to 'lib/rake/task_arguments.rb')
-rw-r--r-- | lib/rake/task_arguments.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rake/task_arguments.rb b/lib/rake/task_arguments.rb index ab404d67f5..02d01b99f9 100644 --- a/lib/rake/task_arguments.rb +++ b/lib/rake/task_arguments.rb @@ -43,6 +43,10 @@ module Rake @hash.each(&block) end + def values_at(*keys) + keys.map { |k| lookup(k) } + end + def method_missing(sym, *args, &block) lookup(sym.to_sym) end |