Class: ScaleRb::Types::StructType
- 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
138 139 140 141 142 143 144 |
# File 'lib/scale_rb/types.rb', line 138 def to_string(depth = 0) if depth > MAX_DEPTH '{ ... }' else "{ #{fields.map { |field| "#{field.name}: #{t(field.type).to_string(depth + 1)}" }.join(', ')} }" end end |