X7ROOT File Manager
Current Path:
/opt/alt/ruby21/lib64/ruby/2.1.0/rake
opt
/
alt
/
ruby21
/
lib64
/
ruby
/
2.1.0
/
rake
/
ðŸ“
..
📄
alt_system.rb
(3.13 KB)
📄
application.rb
(20.78 KB)
📄
backtrace.rb
(715 B)
📄
clean.rb
(1.37 KB)
📄
cloneable.rb
(482 B)
ðŸ“
contrib
📄
default_loader.rb
(164 B)
📄
dsl_definition.rb
(4.15 KB)
📄
early_time.rb
(273 B)
ðŸ“
ext
📄
file_creation_task.rb
(670 B)
📄
file_list.rb
(11.82 KB)
📄
file_task.rb
(1.28 KB)
📄
file_utils.rb
(3.03 KB)
📄
file_utils_ext.rb
(4.05 KB)
📄
gempackagetask.rb
(116 B)
📄
invocation_chain.rb
(1.23 KB)
📄
invocation_exception_mixin.rb
(431 B)
ðŸ“
lib
📄
linked_list.rb
(2.27 KB)
ðŸ“
loaders
📄
multi_task.rb
(315 B)
📄
name_space.rb
(618 B)
📄
packagetask.rb
(5.11 KB)
📄
pathmap.rb
(26 B)
📄
phony.rb
(351 B)
📄
private_reader.rb
(364 B)
📄
promise.rb
(2.28 KB)
📄
pseudo_status.rb
(427 B)
📄
rake_module.rb
(727 B)
📄
rake_test_loader.rb
(341 B)
📄
rdoctask.rb
(126 B)
📄
ruby182_test_unit_fix.rb
(870 B)
📄
rule_recursion_overflow_error.rb
(353 B)
📄
runtest.rb
(471 B)
📄
scope.rb
(868 B)
📄
task.rb
(10.96 KB)
📄
task_argument_error.rb
(119 B)
📄
task_arguments.rb
(1.88 KB)
📄
task_manager.rb
(8.4 KB)
📄
tasklib.rb
(580 B)
📄
testtask.rb
(5.22 KB)
📄
thread_history_display.rb
(1.11 KB)
📄
thread_pool.rb
(4.74 KB)
📄
trace_output.rb
(529 B)
📄
version.rb
(178 B)
📄
win32.rb
(1.54 KB)
Editing: task_arguments.rb
module Rake #################################################################### # TaskArguments manage the arguments passed to a task. # class TaskArguments include Enumerable attr_reader :names # Create a TaskArgument object with a list of named arguments # (given by :names) and a set of associated values (given by # :values). :parent is the parent argument object. def initialize(names, values, parent=nil) @names = names @parent = parent @hash = {} @values = values names.each_with_index { |name, i| @hash[name.to_sym] = values[i] unless values[i].nil? } end # Retrive the complete array of sequential values def to_a @values.dup end # Retrive the list of values not associated with named arguments def extras @values[@names.length..-1] || [] end # Create a new argument scope using the prerequisite argument # names. def new_scope(names) values = names.map { |n| self[n] } self.class.new(names, values + extras, self) end # Find an argument value by name or index. def [](index) lookup(index.to_sym) end # Specify a hash of default values for task arguments. Use the # defaults only if there is no specific value for the given # argument. def with_defaults(defaults) @hash = defaults.merge(@hash) end def each(&block) @hash.each(&block) end def values_at(*keys) keys.map { |k| lookup(k) } end def method_missing(sym, *args) lookup(sym.to_sym) end def to_hash @hash end def to_s @hash.inspect end def inspect to_s end protected def lookup(name) if @hash.has_key?(name) @hash[name] elsif @parent @parent.lookup(name) end end end EMPTY_TASK_ARGS = TaskArguments.new([], []) end
Upload File
Create Folder