class Bundler::Thor::DynamicTask
一个处理方法缺失场景的动态命令。
公共类方法
new(name, options = nil) 点击切换源码
调用父类方法
Bundler::Thor::Command::new
# File bundler/vendor/thor/lib/thor/command.rb, line 138 def initialize(name, options = nil) super(name.to_s, "A dynamically-generated command", name.to_s, nil, name.to_s, options) end
公共实例方法
run(instance, args = []) 点击切换源码
调用父类方法
Bundler::Thor::Command#run
# File bundler/vendor/thor/lib/thor/command.rb, line 142 def run(instance, args = []) if (instance.methods & [name.to_s, name.to_sym]).empty? super else instance.class.handle_no_command_error(name) end end