module T::Private::Sealed::NoInherit

Public Instance Methods

inherited(other) click to toggle source
Calls superclass method
# File lib/types/private/sealed.rb, line 6
def inherited(other)
  super
  this_line = Kernel.caller.find {|line| !line.match(/in `inherited'$/)}
  T::Private::Sealed.validate_inheritance(this_line, self, 'inherited')
  @sorbet_sealed_module_all_subclasses << other
end
sealed_subclasses() click to toggle source
# File lib/types/private/sealed.rb, line 13
def sealed_subclasses
  @sorbet_sealed_module_all_subclasses
end