Class: ScaleRb::Metadata::TypeExp::TupleType
- Inherits:
-
Object
- Object
- ScaleRb::Metadata::TypeExp::TupleType
- Defined in:
- lib/scale_rb/metadata/type_exp.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ TupleType
constructor
A new instance of TupleType.
- #to_s ⇒ Object
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
#params ⇒ Object (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_s ⇒ Object
96 97 98 |
# File 'lib/scale_rb/metadata/type_exp.rb', line 96 def to_s "(#{params.map(&:to_s).join(', ')})" end |