Class: ScaleRb::Types::TupleType
- Defined in:
- lib/scale_rb/types.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#to_string(depth = 0) ⇒ Object
115 116 117 118 119 120 121 |
# File 'lib/scale_rb/types.rb', line 115 def to_string(depth = 0) if depth > MAX_DEPTH '(...)' else "(#{tuple.map { |t| t(t).to_string(depth + 1) }.join(', ')})" end end |