We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d12f3 commit 054aff9Copy full SHA for 054aff9
lib/contracts/engine/base.rb
@@ -57,6 +57,11 @@ def all_decorators
57
pop_decorators + eigenclass_engine.all_decorators
58
end
59
60
+ # Fetches decorators of specified type for method with name
61
+ #
62
+ # @param [Or[:class_methods, :instance_methods]] type - method type
63
+ # @param [Symbol] name - method name
64
+ # @return [ArrayOf[Decorator]]
65
def decorated_methods_for(type, name)
66
Array(decorated_methods[type][name])
67
0 commit comments