Module: T::Private::Sealed::NoIncludeExtend
- Defined in:
- lib/types/private/sealed.rb
Instance Method Summary collapse
Instance Method Details
#extended(other) ⇒ Object
20 21 22 23 24 |
# File 'lib/types/private/sealed.rb', line 20 def extended(other) super this_line = Kernel.caller.find {|line| !line.match(/in `extended'$/)} T::Private::Sealed.validate_inheritance(this_line, self, 'extended') end |
#included(other) ⇒ Object
14 15 16 17 18 |
# File 'lib/types/private/sealed.rb', line 14 def included(other) super this_line = Kernel.caller.find {|line| !line.match(/in `included'$/)} T::Private::Sealed.validate_inheritance(this_line, self, 'included') end |