Module: T::Private::Sealed::NoInherit

Defined in:
lib/types/private/sealed.rb

Instance Method Summary collapse

Instance Method Details

#inherited(other) ⇒ Object



6
7
8
9
10
# 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')
end