method

new

ruby latest stable - Class: Bundler::Thor::Option

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(name, options = {})
public

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/parser/option.rb, line 7
    def initialize(name, options = {})
      @check_default_type = options[:check_default_type]
      options[:required] = false unless options.key?(:required)
      super
      @lazy_default = options[:lazy_default]
      @group        = options[:group].to_s.capitalize if options[:group]
      @aliases      = Array(options[:aliases])
      @hide         = options[:hide]
    end