Sha256: fbe328a7587f5e424f5430e690998b12996ec8406a7178f081aeb89cbd938eb0

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

module Parameters
  class Param

    # Name of parameter
    attr_reader :name

    # Description of parameter
    attr_reader :description

    #
    # Creates a new Param object.
    #
    # @param [Symbol, String] name
    #   The name of the parameter.
    #
    # @param [String, nil] description
    #   The description of the parameter.
    #
    def initialize(name,description=nil)
      @name = name.to_sym
      @description = description
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
parameters-0.1.9 lib/parameters/param.rb
parameters-0.1.8 lib/parameters/param.rb