Module: Interface::Helpers
- Included in:
- Interface
- Defined in:
- lib/interface/helpers.rb
Instance Method Summary collapse
-
#must_implement(*args) ⇒ Object
Errors raised here identify the class_name that is not implementing or is implemented with the wrong arity required by the Interface.
Instance Method Details
#must_implement(*args) ⇒ Object
Errors raised here identify the class_name that is not implementing or is implemented with the wrong arity required by the Interface.
7 8 9 10 11 |
# File 'lib/interface/helpers.rb', line 7 def must_implement(*args) parsed_args(args).each do |method, arity| raise_interface_error(method, arity) unless valid_method?(method, arity) end end |