Class: ScaleRb::OldRegistry::TypeExp::TupleType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ TupleType

Returns a new instance of TupleType.



348
349
350
# File 'lib/scale_rb/old_registry.rb', line 348

def initialize(params)
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



346
347
348
# File 'lib/scale_rb/old_registry.rb', line 346

def params
  @params
end

Instance Method Details

#to_sObject



352
353
354
# File 'lib/scale_rb/old_registry.rb', line 352

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