Sha256: e86b7fc589d8db66af64d1d508b6c4f1fc34d02c83dbf077996df8a03d85e61a
Contents?: true
Size: 780 Bytes
Versions: 4
Compression:
Stored size: 780 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module Carbon module Tacky # A parameter that's been passed in by a function. This just contains the # number, name, and type of the parameter, for proper mapping later. class Parameter < Value # Initializes the parameter with the given number, name, and type. # # @param number [::Numeric] The number of the parameter. The far left # of a parameter list is zero (0). # @param type [Concrete::Type] The type of the parameter. # @param name [::String] The name of the parameter. If one is not given, # the name is autogenerated. def initialize(number, type, name = "") @name = name @type = type @value = number end end end end
Version data entries
4 entries across 4 versions & 1 rubygems