Module: RBS::Types::SelfTypeBindingHelper

Defined in:
lib/rbs/types.rb,
sig/types.rbs

Class Method Summary collapse

Instance 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

Instance Method Details

#self?.self_type_binding_to_sString

Parameters:

  • (t, nil)

Returns:

  • (String)


535
# File 'sig/types.rbs', line 535

def self?.self_type_binding_to_s: (t?) -> String