Module: Duckface::ImplementationMethods
- Defined in:
- lib/duckface/implementation_methods.rb
Instance Method Summary collapse
Instance Method Details
#check_it_implements(interface_class) ⇒ Object
5 6 7 |
# File 'lib/duckface/implementation_methods.rb', line 5 def check_it_implements(interface_class) Duckface::Services::CheckClassImplementsInterface.new(self, interface_class).perform end |
#says_it_implements?(interface_class) ⇒ Boolean
9 10 11 |
# File 'lib/duckface/implementation_methods.rb', line 9 def says_it_implements?(interface_class) included_modules.include?(interface_class) end |