Method: CommandKit::Options::OptionValue#default_value

Defined in:
lib/command_kit/options/option_value.rb

#default_valueObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new default value.

Returns:

  • (Object)


121
122
123
124
125
# File 'lib/command_kit/options/option_value.rb', line 121

def default_value
  if @default.respond_to?(:call) then @default.call
  else                                @default.dup
  end
end