Module: RBS::Types::SelfTypeBindingHelper

Defined in:
lib/rbs/types.rb

Class Method Summary collapse

Class Method Details

.self_type_binding_to_s(t) ⇒ Object



1398
1399
1400
1401
1402
1403
1404
# File 'lib/rbs/types.rb', line 1398

def self_type_binding_to_s(t)
  if t
    "[self: #{t}] "
  else
    ""
  end
end