Sha256: 57db1f7cc014606ffca24ad90fdef175e832552b79e9bdf956b101bcc512ebd0

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

module OptParseBuilder
  class ConstantArgument < Argument # :nodoc:

    attr_reader :key
    attr_reader :value

    def initialize(key, value)
      unless key
        raise BuildError, "default requires a key"
      end
      @key = key
      @value = value
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opt_parse_builder-0.1.0 lib/opt_parse_builder/constant_argument.rb