Class: Strict::Methods::Module
- Inherits:
-
Module
- Object
- Module
- Strict::Methods::Module
- Defined in:
- lib/strict/methods/module.rb
Instance Method Summary collapse
Instance Method Details
#wrap(verifiable_method, invocation_target: :super) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/strict/methods/module.rb', line 6 def wrap(verifiable_method, invocation_target: :super) case invocation_target when :super wrap_super(verifiable_method) when :implementation wrap_implementation(verifiable_method) else raise ArgumentError, "Unknown invocation target: #{invocation_target.inspect}" end end |