Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
new(args = [], options = {}, config = {})
public
Add shell to initialize config
values.
Configuration
Examples
class MyScript < Bundler::Thor
argument :first, :type => :numeric
end
MyScript.new [1.0], { :foo => :bar }, :shell => Bundler::Thor::Shell::Basic.new
# File lib/bundler/vendor/thor/lib/thor/shell.rb, line 44
def initialize(args = [], options = {}, config = {})
super
self.shell = config[:shell]
shell.base ||= self if shell.respond_to?(:base)
end