Method: Module#declare_compliance!
- Defined in:
- lib/y_support/typing/module/typing.rb
#declare_compliance!(other_module) ⇒ Object
Using this method, the receiver explicitly declares that its interface complies with another module (class).
34 35 36 37 38 39 |
# File 'lib/y_support/typing/module/typing.rb', line 34 def declare_compliance! other_module other_module.aT_kind_of Module, "other module" return false if declared_compliance.include? other_module ( @declared_compliance ||= [] ) << other_module return true end |