Class: ScaleRb::Metadata::TypeExp::TupleType

Inherits:
Object
  • Object
show all
Defined in:
lib/scale_rb/metadata/type_exp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ TupleType

Returns a new instance of TupleType.



92
93
94
# File 'lib/scale_rb/metadata/type_exp.rb', line 92

def initialize(params)
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



90
91
92
# File 'lib/scale_rb/metadata/type_exp.rb', line 90

def params
  @params
end

Instance Method Details

#to_sObject



96
97
98
# File 'lib/scale_rb/metadata/type_exp.rb', line 96

def to_s
  "(#{params.map(&:to_s).join(', ')})"
end