module T::Private::Sealed::NoIncludeExtend

Public Instance Methods

extended(other) click to toggle source
Calls superclass method
# File lib/types/private/sealed.rb, line 26
def extended(other)
  super
  this_line = Kernel.caller.find {|line| !line.match(/in `extended'$/)}
  T::Private::Sealed.validate_inheritance(this_line, self, 'extended')
  @sorbet_sealed_module_all_subclasses << other
end
included(other) click to toggle source
Calls superclass method
# File lib/types/private/sealed.rb, line 19
def included(other)
  super
  this_line = Kernel.caller.find {|line| !line.match(/in `included'$/)}
  T::Private::Sealed.validate_inheritance(this_line, self, 'included')
  @sorbet_sealed_module_all_subclasses << other
end
sealed_subclasses() click to toggle source
# File lib/types/private/sealed.rb, line 33
def sealed_subclasses
  # this will freeze the set so that you can never get into a
  # state where you use the subclasses list and then something
  # else will add to it
  @sorbet_sealed_module_all_subclasses.freeze
end