Module: T::Private::Final::NoIncludeExtend

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

Instance Method Summary collapse

Instance Method Details

#extended(arg) ⇒ Object



18
19
20
21
# File 'lib/types/private/final.rb', line 18

def extended(arg)
  super(arg)
  raise "#{self} was declared as final and cannot be extended"
end

#included(arg) ⇒ Object



13
14
15
16
# File 'lib/types/private/final.rb', line 13

def included(arg)
  super(arg)
  raise "#{self} was declared as final and cannot be included"
end