X7ROOT File Manager
Current Path:
/opt/alt/ruby19/lib64/ruby/1.9.1/rake
opt
/
alt
/
ruby19
/
lib64
/
ruby
/
1.9.1
/
rake
/
ðŸ“
..
📄
alt_system.rb
(3.14 KB)
📄
application.rb
(17.45 KB)
📄
classic_namespace.rb
(408 B)
📄
clean.rb
(1016 B)
📄
cloneable.rb
(665 B)
ðŸ“
contrib
📄
default_loader.rb
(164 B)
📄
dsl_definition.rb
(4.67 KB)
📄
early_time.rb
(273 B)
ðŸ“
ext
📄
file_creation_task.rb
(670 B)
📄
file_list.rb
(11.23 KB)
📄
file_task.rb
(1.28 KB)
📄
file_utils.rb
(2.99 KB)
📄
file_utils_ext.rb
(4.12 KB)
📄
gempackagetask.rb
(283 B)
📄
invocation_chain.rb
(962 B)
📄
invocation_exception_mixin.rb
(431 B)
ðŸ“
lib
ðŸ“
loaders
📄
multi_task.rb
(418 B)
📄
name_space.rb
(618 B)
📄
packagetask.rb
(5.07 KB)
📄
pathmap.rb
(26 B)
📄
pseudo_status.rb
(422 B)
📄
rake_module.rb
(532 B)
📄
rake_test_loader.rb
(341 B)
📄
rdoctask.rb
(6.55 KB)
📄
ruby182_test_unit_fix.rb
(843 B)
📄
rule_recursion_overflow_error.rb
(353 B)
📄
runtest.rb
(438 B)
📄
task.rb
(9.47 KB)
📄
task_argument_error.rb
(119 B)
📄
task_arguments.rb
(1.64 KB)
📄
task_manager.rb
(8.77 KB)
📄
tasklib.rb
(580 B)
📄
testtask.rb
(4.88 KB)
📄
version.rb
(158 B)
📄
win32.rb
(1.53 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 = {} names.each_with_index { |name, i| @hash[name.to_sym] = values[i] unless values[i].nil? } end # Create a new argument scope using the prerequisite argument # names. def new_scope(names) values = names.collect { |n| self[n] } self.class.new(names, values, 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, &block) 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