Sha256: 2bd2e64a89371f15cadead7f498fe070dfa120a37c63eaf86e2d62410729e7b0

Contents?: true

Size: 326 Bytes

Versions: 12

Compression:

Stored size: 326 Bytes

Contents

module Rumx
  class Argument
    attr_reader :name, :type, :description, :default_value

    def initialize(name, type_name, description, default_value=nil)
      @name          = name.to_sym
      @type          = Type.find(type_name)
      @description   = description
      @default_value = default_value
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rumx-0.2.3 lib/rumx/argument.rb
rumx-0.2.2 lib/rumx/argument.rb
rumx-0.1.5 lib/rumx/argument.rb
rumx-0.1.4 lib/rumx/argument.rb
rumx-0.1.3 lib/rumx/argument.rb
rumx-0.1.2 lib/rumx/argument.rb
rumx-0.1.1 lib/rumx/argument.rb
rumx-0.1.0 lib/rumx/argument.rb
rumx-0.0.8 lib/rumx/argument.rb
rumx-0.0.7 lib/rumx/argument.rb
rumx-0.0.6 lib/rumx/argument.rb
rumx-0.0.5 lib/rumx/argument.rb