Method: Bundler::Thor::Argument#show_default?

Defined in:
lib/bundler/vendor/thor/lib/thor/parser/argument.rb

#show_default?Boolean

Returns:

  • (Boolean)


43
44
45
46
47
48
49
50
# File 'lib/bundler/vendor/thor/lib/thor/parser/argument.rb', line 43

def show_default?
  case default
  when Array, String, Hash
    !default.empty?
  else
    default
  end
end