module ActiveRecord::Reflection

def reflection_class_for(macro)

Experimental RBS support (using type sampling data from the type_fusion project).

def reflection_class_for: (Symbol macro) -> Class

This signature was generated using 1 sample from 1 application.

def reflection_class_for(macro)
  case macro
  when :composed_of
    AggregateReflection
  when :has_many
    HasManyReflection
  when :has_one
    HasOneReflection
  when :belongs_to
    BelongsToReflection
  else
    raise "Unsupported Macro: #{macro}"
  end
end