Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/inferior/core_ext/module.rb

Instance Method Summary collapse

Instance Method Details

#interface!Object

Raises:

  • (TypeError)


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