Sha256: 2c433b9b8b3a56c29c78198b35e09f16e47dc35da0c955eff3c47d587480dd76

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

require 'command_mapper/arg'

module CommandMapper
  #
  # Represents the value for an option.
  #
  class OptionValue < Arg

    #
    # Formats a value using the options {#type}.
    #
    # @param [Object] value
    #   The given value to format.
    #
    # @return [String]
    #   The formatted value.
    #
    def format(value)
      @type.format(value)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
command_mapper-0.2.0 lib/command_mapper/option_value.rb
command_mapper-0.1.2 lib/command_mapper/option_value.rb
command_mapper-0.1.1 lib/command_mapper/option_value.rb