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



1440
1441
1442
1443
1444
1445
1446
# File 'lib/rbs/types.rb', line 1440

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)


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

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