Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/inferior/core_ext/module.rb
Instance Method Summary collapse
Instance Method Details
#interface! ⇒ Object
6 7 8 9 10 |
# File 'lib/inferior/core_ext/module.rb', line 6 def interface! raise TypeError, "a class can not declared as an interface" if instance_of?(Class) extend Inferior::Core::DSL::Interface end |