Sha256: 5d46dc1b15a9812b8aa1d093eda1320f4b2329c3b6af0010d9b8ff525dff7060

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 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
    #
    # @return [String]
    #
    def format(value)
      @type.format(value)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
command_mapper-0.1.0 lib/command_mapper/option_value.rb
command_mapper-0.1.0.pre1 lib/command_mapper/option_value.rb