Class: ScaleRb::Types::BitSequenceType

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

Constant Summary

Constants inherited from Base

ScaleRb::Types::Base::MAX_DEPTH

Instance Method Summary collapse

Methods inherited from Base

#t, #to_s

Instance Method Details

#to_string(depth = 0) ⇒ Object



90
91
92
93
94
95
96
# File 'lib/scale_rb/types.rb', line 90

def to_string(depth = 0)
  if depth > MAX_DEPTH
    'BitSequence<...>'
  else
    "BitSequence<#{t(bit_store_type).to_string(depth + 1)}, #{t(bit_order_type).to_string(depth + 1)}>"
  end
end