Class: ScaleRb::Types::SequenceType

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

Constant Summary

Constants inherited from Base

Base::MAX_DEPTH

Instance Method Summary collapse

Methods inherited from Base

#t, #to_s

Instance Method Details

#to_string(depth = 0) ⇒ Object



77
78
79
80
81
82
83
# File 'lib/scale_rb/types.rb', line 77

def to_string(depth = 0)
  if depth > MAX_DEPTH
    '[...]'
  else
    "[#{t(type).to_string(depth + 1)}]"
  end
end