Method: RBS::Environment::MultiEntry#compatible_params?

Defined in:
lib/rbs/environment.rb

#compatible_params?(ps1, ps2) ⇒ Boolean

Returns:

  • (Boolean)


70
71
72
73
74
# File 'lib/rbs/environment.rb', line 70

def compatible_params?(ps1, ps2)
  if ps1.size == ps2.size
    ps1 == AST::TypeParam.rename(ps2, new_names: ps1.map(&:name))
  end
end